')
// 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 (h_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 grounds=c_prompt("Enter the Grounds for dismissal:",grounds);
var no_juris=c_prompt("State the reasons the court lacks Jurisdiction:",no_juris);
var pl_att=c_prompt("Enter the Name of Attorney for Plaintiff"+Pl_num+":",pl_att)
var city=c_prompt("Enter City where hearing will be held:",city);
var h_date=c_prompt("Enter the Date of the hearing:",h_date);
var h_time=c_prompt("Enter the Time of the hearing:",h_time);
if(confirm("Review information about this Specific Document?"))
{var review2="Yes"}else{var review2="No"}
}
//Assemble body paragraphs
if(def_num=='1'){moves='moves'}else{moves='move'}
var Intro='
The defendant'+Def_num+' '+moves+' the court as follows:'
var PN1='
1. To dismiss the action because the complaint fails to state a claim against defendant'+Def_num+' upon which relief can be granted.'
var PN2='
2. To dismiss the action or in lieu thereof to quash the return of service of summons on the grounds: '+grounds+'.'
var PN3='
3. To dismiss the action on the ground that the court lacks jurisdiction because '+no_juris+'.'
var Wherefore=''
var Notice='
NOTICE OF MOTION
To: '+pl_att+' Attorney for Plaintiff
Please take notice, that the undersigned will bring the above motion on for hearing before the court, in the court house in the City of '+city+' on '+h_date+', at '+h_time+' or as soon thereafter as counsel can be heard.'
//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 defendant may sign this document.");var name=defendant;}};
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 Defendant"+Def_num}else{Is_lawyer=plaintiff+" Defendant"+Def_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(name!=GetCookie("name")) SetCookie("name",name,expires);
if(is_lawyer!=GetCookie("is_lawyer")) SetCookie("is_lawyer",is_lawyer,expires);
if(bid!=GetCookie("bid")) SetCookie("bid",bid,expires);
if(address!=GetCookie("address")) SetCookie("address",address,expires);
var parties=party+pl_num+def_num+def3d_num+app_num+int_num+add_party;
if(grounds!=GetCookie("grounds")) SetCookie("grounds",grounds,expires);
if(no_juris!=GetCookie("no_juris"))SetCookie("no_juris",no_juris,expires);
if(pl_att!=GetCookie("pl_att"))SetCookie("pl_att",pl_att,expires);
if(city!=GetCookie("city"))SetCookie("city",city,expires);
if(h_date!=GetCookie("h_date"))SetCookie("h_date",h_date,expires);
if(h_time!=GetCookie("h_time"))SetCookie("h_time",h_time,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 introductory paragraph:",Intro);
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 Notice1=Notice.substring(0,Notice.indexOf('Attorney for Plaintiff
')+25);
var Notice2=Notice.substring(Notice.indexOf('Attorney for Plaintiff
')+25);
var Notice2=p_prompt("Edit Relief paragraph:",Notice2);
var Notice=Notice1+Notice2
}
if(confirm("Do you want instructions on printing legal documents?"))
{var printing="Yes"}else{var printing="No"}
if(printing=="Yes"){Prin()}
Final();
//-->