')
// Begin user-input loop
var review="Yes"
while (review=="Yes"){
// Prompt for Case Title information
var review1="Yes"
if (defendantA!="First Defendant"){
var review1=prompt("Do you wish to review Case Title information?","Yes")}else{alert("The following questions are about the Case Title.")}
while (review1=="Yes"){
var ck_county="Yes"
while (ck_county=="Yes"){
var county=int_cap(c_prompt("Enter the County Name:",county));
county=Mc(county)
ck_county="No"
// Correct common misspellings
if(county=="Burliegh"){county="Burleigh"}else{
if(county=="Grand forks"){county="Grand Forks"}else{
if(county=="Trail"){county="Traill"}else{
if(county=="Steel"){county="Steele"}else{
if(county=="Lamoure"){county="LaMoure"}
if(county=="Golden valley"){county="Golden Valley"}else{
}}}}}
// Insert district names
if(county=="Cass"){district="East Central"}else{
if(county=="Burleigh"){district="South Central"}else{
if(county=="Grand Forks"){district="Northeast Central"}else{
if(county=="Stutsman"){district="Southeast"}else{
if(county=="Ward"){district="Northwest"}else{
if(county=="Morton"){district="South Central"}else{
if(county=="Williams"){district="Northwest"}else{
if(county=="Richland"){district="Southeast"}else{
if(county=="Barnes"){district="Southeast"}else{
if(county=="Steele"){district="East Central"}else{
if(county=="Traill"){district="East Central"}else{
if(county=="Benson"){district="Northeast"}else{
if(county=="Bottineau"){district="Northeast"}else{
if(county=="Benson"){district="Northeast"}else{
if(county=="Cavalier"){district="Northeast"}else{
if(county=="McHenry"){district="Northeast"}else{
if(county=="Pembina"){district="Northeast"}else{
if(county=="Pierce"){district="Northeast"}else{
if(county=="Ramsey"){district="Northeast"}else{
if(county=="Renville"){district="Northeast"}else{
if(county=="Rolette"){district="Northeast"}else{
if(county=="Towner"){district="Northeast"}else{
if(county=="Walsh"){district="Northeast"}else{
if(county=="Griggs"){district="Northeast Central"}else{
if(county=="Nelson"){district="Northeast Central"}else{
if(county=="Divide"){district="Northwest"}else{
if(county=="McKenzie"){district="Northwest"}else{
if(county=="Mountrail"){district="Northwest"}else{
if(county=="Emmons"){district="South Central"}else{
if(county=="Grant"){district="South Central"}else{
if(county=="Kidder"){district="South Central"}else{
if(county=="Logan"){district="South Central"}else{
if(county=="McIntosh"){district="South Central"}else{
if(county=="McLean"){district="South Central"}else{
if(county=="Mercer"){district="South Central"}else{
if(county=="Oliver"){district="South Central"}else{
if(county=="Sioux"){district="South Central"}else{
if(county=="Sheridan"){district="South Central"}else{
if(county=="Dickey"){district="Southeast"}else{
if(county=="Eddy"){district="Southeast"}else{
if(county=="Foster"){district="Southeast"}else{
if(county=="LaMoure"){district="Southeast"}else{
if(county=="Ransom"){district="Southeast"}else{
if(county=="Sargent"){district="Southeast"}else{
if(county=="Wells"){district="Southeast"}else{
if(county=="Adams"){district="Southwest"}else{
if(county=="Billings"){district="Southwest"}else{
if(county=="Bowman"){district="Southwest"}else{
if(county=="Dunn"){district="Southwest"}else{
if(county=="Golden Valley"){district="Southwest"}else{
if(county=="Hettinger"){district="Southwest"}else{
if(county=="Slope"){district="Southwest"}else{
if(county=="Stark"){district="Southwest"}else{district="UNKNOWN"}
}} }}}}}}}}}} }} }}} }}}}} }}}}}}}}}} }} }}}}}}}}}} }}}}}}}}
if(district=="UNKNOWN"){
if(confirm('\nCounty of "'+county+'" is not the correct name of a North Dakota county.\n\n Would you like to try entering a North Dakota county again?'))
{var ck_county="Yes"}else{var ck_county="No"}
}
}
//Prompt for Party information
var pl_num=c_prompt("How many Plaintiffs are there?",pl_num);
if(pl_num=="1"){
var plaintiff=c_prompt("Enter the Plaintiff's Name:",plaintiff)
}else{var plaintiff=c_prompt("Enter the Plaintiffs' Names:",plaintiff)
}
var def_num="3"
//var def_num=c_prompt("How many Defendants are there?",def_num)
//if(def_num!="2"){alert("This form is designed for TWO defendants.")}
var insured=c_prompt("Enter the name of the Person Insured:",insured);
var bene=c_prompt("Enter the name of the Beneficiary named in the policy:",bene);
alert("The First Defendant is the Executor or Personal Representative of the Estate of "+insured+".");
var defendantA=c_prompt("Enter the First Defendant's Name:",defendantA);
var titleA=c_prompt("Enter "+defendantA+"'s Title:",titleA)
alert("The Second Defendant is the Executor or Personal Representative of the Estate of "+bene+".");
var defendantB=c_prompt("Enter the Second Defendant's Name:",defendantB)
var titleB=c_prompt("Enter "+defendantB+"'s Title:",titleB)
alert("The Third Defendant is the person claiming to be the successor benficiary.");
var defendantC=c_prompt("Enter the Third Defendant's Name:",defendantC)
if(confirm("Review Case Title information?"))
{var review1="Yes"}else{var review1="No"}
}
var defendant=defendantA+' as '+titleA+' of the Estate of '+insured+', '+defendantB+' as '+titleB+' of the Estate of '+bene+', and '+defendantC
if(pl_num!="1"){var Pl_num='s'}else{var Pl_num=''}
if(def_num!="1"){var Def_num='s'}else{var Def_num=''}
var case_title='
State of North Dakota
)
In District Court
)
County of '+county+'
)
'+district+' Judicial District
'+party_heading(plaintiff)+'
Plaintiff'+Pl_num+'
)
vs.
)
'+party_heading(defendant)+'
Defendant'+Def_num+'
)
'+title+'
'
//Get Form-Specific information
var review2="Yes"
if (x_date!=today){
if(confirm("Review information about this Specific Document?"))
{var review2="Yes"}else{var review2="No"}}else{
alert("The following questions are about this Specific Document.")
}
while (review2=="Yes"){
// Prompt for Form Specific data
var n_date=c_prompt("Enter the Date of the insurance policy:",n_date);
var amount=c_prompt("Enter the Amount of the policy:",amount);
var x_date=c_prompt("Enter the Date of the policy expired:",x_date);
var d_date=c_prompt("Enter the Date "+insured+" died:",d_date);
var cause=c_prompt("What caused the death of "+insured+" and "+bene+"?",cause);
if(confirm("Review information about this Specific Document?"))
{var review2="Yes"}else{var review2="No"}
}
//Assemble body paragraphs
var Intro=''
var PN1='
1. On or about '+n_date+', plaintiff issued to '+insured+' a policy of life insurance whereby plaintiff promised to pay to '+bene+' as beneficiary the sum '+amount+' upon the death of '+insured+'. The policy required the payment by '+insured+' of a stipulated premium on '+n_date+', and annually thereafter as a condition precedent to its continuance in force.'
var PN2='
2. No part of the premium due '+n_date+', was ever paid and the policy ceased to have any force or effect on '+x_date+'.'
var PN3='
3. Thereafter, on '+d_date+', '+insured+' and '+bene+' died as the result of '+cause+'.'
var PN4='
4. Defendant '+defendantA+' is the duly appointed and acting '+titleA+' of the will of '+insured+'; defendant '+defendantB+' is the duly appointed and acting '+titleB+' of the will of '+bene+'; defendant '+defendantC+' claims to have been duly designated as beneficiary of said policy in place of '+bene+'.'
var PN5='
5. Each of defendants, '+defendantA+', '+defendantB+', and '+defendantC+', is claiming that the above-mentioned policy was in full force and effect at the time of the death of '+insured+'; each of them is claiming to be the only person entitled to receive payment of the amount of the policy and has made demand for payment thereof.'
var PN6='
6. By reason of these conflicting claims of the defendants, plaintiff is in great doubt as to which defendant is entitled to be paid the amount of the policy, if it was in force at the death of '+insured+'.'
var cause='a collision between a locomotive and the automobile in which '+insured+' and '+bene+' were riding'
var Wherefore='
Wherefore plaintiff'+Pl_num+' demands that the court adjudge:'
var W1='
(1) That none of the defendants is entitled to recover from plaintiff the amount of said policy or any part thereof.'
var W2='
(2) That each of the defendants be restrained from instituting any action against plaintiff for the recovery of the amount of said policy or any part thereof.'
var W3='
(3) That, if the court shall determine that said policy was in force at the death of '+insured+', the defendants be required to interplead and settle between themselves their rights to the money due under said policy, and that plaintiff be discharged from all liability in the premises except to the person whom the court shall adjudge entitled to the amount of said policy.'
var W4='
(4) That plaintiff recover its costs and disbursements.'
//Prompt for Date of this Document
var today=t_date()
var temp_date=today;
var today=prompt("Enter the Date of this document:",today);
if(today==null){today=temp_date}
if(today==""){today=temp_date}
//Get information about the Person Signing this document
var review3="Yes"
if (name!="Name"){
if(confirm("Review information on the Person to Sign?"))
{var review3="Yes"}else{var review3="No"}}else{alert("The following questions are about the Person Signing this document.")}
while (review3=="Yes"){
var name=c_prompt("Enter name of Person to Sign Summons:",name);
if(name!=plaintiff){
var is_lawyer=c_prompt("Is "+name+" a Lawyer?",is_lawyer);
if(is_lawyer=="Yes"){var bid=c_prompt("Enter "+name+"'s Bar ID Number:",bid)}else{alert("Only a lawyer or the plaintiff may sign this document.");var name=plaintiff;}};
var add1=c_prompt("Enter the first line of "+name+"'s Address:",add1);
if(add1!=""){var add2=c_prompt("Enter the second line of "+name+"'s Address:",add2)}else{add2=""}
if(add2!=""){var add3=c_prompt("Enter the third line (if any) of "+name+"'s Address:",add3)}else{add3="";
add4="";
add5="";}
if(add3!=""){var add4=c_prompt("Enter the fifth line (if any) of "+name+"'s Address:",add4)}else{add4="";
add5="";}
if(add4!=""){var add5=c_prompt("Enter the fifth line (if any) of "+name+"'s Address:",add5)}else{add5=""}
if(confirm("Review information on the Person to Sign?"))
{var review3="Yes"}else{var review3="No"}
}
if(confirm("Do you wish to review any information entered?"))
{var review="Yes"}else{var review="No"}
}
var address=add1+' '+add2+' '+add3+' '+add4+' '+add5
if(bid=="Number"){Bid=""}else{if(bid==""){Bid=""}else{Bid=bid}}
nameA=name+' '+Bid+' '+address+' '+is_lawyer
if(bid=="Number"){Bid=""}else{if(bid==""){Bid=""}else{Bid=bid}}
nameA=name+' '+Bid+' '+address
if(is_lawyer=="Yes"){Is_lawyer=name+" Bar ID Number: "+bid+" Attorney for Plaintiff"+Pl_num}else{Is_lawyer=plaintiff+" Plaintiff"+Pl_num}
var doc_close='
Dated '+today+'.
Signed:
________________________________
'+Is_lawyer+'
'+address+'
'
//Optional Save Data to Disk
if(confirm("Do you want to save this data for use with other forms?"))
{var save_data="Yes"}else{var save_data="No"}
if(save_data=="Yes"){
if(county!=GetCookie("county")) SetCookie("county",county,expires);
if(district!=GetCookie("district")) SetCookie("district",district,expires);
if(plaintiff!=GetCookie("plaintiff")) SetCookie("plaintiff",plaintiff,expires);
if(defendant!=GetCookie("defendant")) SetCookie("defendant",defendant,expires);
if(nameA!=GetCookie("nameA")) SetCookie("nameA",nameA,expires);
if(n_date!=GetCookie("n_date"))SetCookie("n_date",n_date,expires);
if(d_date!=GetCookie("d_date"))SetCookie("d_date",d_date,expires);
if(x_date!=GetCookie("x_date"))SetCookie("x_date",x_date,expires);
if(amount!=GetCookie("amount"))SetCookie("amount",amount,expires);
if(cause!=GetCookie("cause"))SetCookie("cause",cause,expires);
}
if(confirm("Would you like to preview the text?"))
{var preview="Yes"}else{var preview="No"}
if(preview=="Yes"){View()}
if(confirm("Do you want to change the normal form language?"))
{var form_edit="Yes"}else{var form_edit="No"}
if(form_edit=="Yes")
{if(confirm("\nThis is normally not necessary.\n\n Are you sure you want to change the normal form language?"))
{var form_edit="Yes"}else{var form_edit="No"}
if(form_edit=="Yes")
var PN1=p_prompt("Edit paragraph 1:",PN1);
var PN2=p_prompt("Edit paragraph 2:",PN2);
var PN3=p_prompt("Edit paragraph 3:",PN3);
var PN4=p_prompt("Edit paragraph 4:",PN4);
var PN5=p_prompt("Edit paragraph 5:",PN5);
var PN6=p_prompt("Edit paragraph 6:",PN6);
var Wherefore=p_prompt("Edit Relief introduction:",Wherefore);
var W1=p_prompt("Edit Relief paragraph 1:",W1);
var W2=p_prompt("Edit Relief paragraph 2:",W2);
var W3=p_prompt("Edit Relief paragraph 3:",W3);
var W4=p_prompt("Edit Relief paragraph 4:",W4);
}
if(confirm("Do you want instructions on printing legal documents?"))
{var printing="Yes"}else{var printing="No"}
if(printing=="Yes"){Prin()}
Final();
//-->