')
// 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 (n_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 Beginning Date:",n_date);
var d_date=c_prompt("Enter the Ending Date:",d_date);
//var n_text=c_prompt("Attach promisory note or enter the text of note here:",n_text)
var amount=c_prompt("Enter the Amount due:",amount);
//var int_rate=c_prompt("Enter the Interest Rate Percent:",int_rate);
//var i_date=c_prompt("Enter the Date from which interest is due:",i_date);
if(confirm("Review information about this Specific Document?"))
{var review2="Yes"}else{var review2="No"}
}
//Assemble body paragraphs
if(def_num=='1'){owe='owes'}else{owe='owe'}
var Intro=''
var PN1='
1. Defendant'+Def_num+' '+owe+' plaintiff'+Pl_num+' '+amount+' for goods sold and delivered by plaintiff'+Pl_num+' to defendant'+Def_num+' between '+n_date+', and '+d_date+'.'
var PN2=''
var Wherefore='
Wherefore plaintiff'+Pl_num+' demands judgment against defendant'+Def_num+' for the sum of '+amount+', interest, 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(i_date!=GetCookie("i_date"))SetCookie("i_date",i_date,expires);
if(amount!=GetCookie("amount"))SetCookie("amount",amount,expires);
//if(int_rate!=GetCookie("int_rate"))SetCookie("int_rate",int_rate,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 Wherefore=p_prompt("Edit Relief paragraph:",Wherefore);
}
if(confirm("Do you want instructions on printing legal documents?"))
{var printing="Yes"}else{var printing="No"}
if(printing=="Yes"){Prin()}
Final();
//-->