')
// Begin user-input loop
var review="Yes"
while (review=="Yes"){
// Prompt for Case Title information
var review1="Yes"
if (county!="County Name"){
if(confirm("Do you wish to review Case Title information?"))
{var review1="Yes"}else{var review1="No"}}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=c_prompt("How many Defendants are there?",def_num)
if(def_num=="1"){
var defendant=c_prompt("Enter the Defendant's Name:",defendant)
}else{var defendant=c_prompt("Enter the Defendants' Names:",defendant)}
if(confirm("Review Case Title information?"))
{var review1="Yes"}else{var review1="No"}
}
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 (complaint!="New"){
//var review2=prompt("Review information about this Specific
//Document?","Yes")}else{
//alert("The following questions are about this Specific Document.")
//}
//while (review2=="Yes"){
alert("The following questions are about this Specific Document.")
if(confirm("Will the Complaint be served with this Summons?"))
{var complaint="Yes"}else{var complaint="No"}
//Assemble body paragraphs
if(complaint == "Yes"){Complaint="herewith served upon you"
}else{
Complaint="or will be filed with the clerk of this court"}
var Intro='
The State of North Dakota to the above named defendant'+Def_num+':
You are hereby summoned and required to appear and defend against the complaint in this action, which is '+Complaint+' , by serving upon the undersigned an answer or other proper response within twenty days after the service of this summons upon you, exclusive of the day of service. If you fail to do so, judgment by default will be taken against you for the relief demanded in the complaint.'
var PN1=''
var PN2=''
var Wherefore=''
//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 the summons.");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(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 Intro=p_prompt("Edit text:",Intro);
}
if(confirm("Do you want instructions on printing legal documents?"))
{var printing="Yes"}else{var printing="No"}
if(printing=="Yes"){Prin()}
Final();
//-->