1 /**
  2  * Function to create the printable JS-44 using all captured values
  3  * @param form
  4  * 
  5  */
  6 function createForm(form){
  7 var debug = 0;
  8 if(debug) alert("createForm(): The form is " + form.name);
  9 var basisOfJur = form.basis_of_jur.value;
 10 //if(debug) alert("Basis of Citizenship = " + basisOfJur );
 11 //if(basisOfJur.match(/Diversity/g)){alert("Basis of Jurisdiction is Diversity");}
 12 var newWin;
 13 var winHTML;
 14 newWin = window.open("","newWin","height=700,width=700,toolbar=no,scrollbars=yes,status=no,menubar=no");
 15 winHTML = "<html>";
 16 winHTML +="<head><title>" + form.districts.value + " Civil Cover Sheet</title>";
 17 //winHTML +="<style>input.printbutton{visibility:hidden}</style>";
 18 winHTML +="</head>";
 19 winHTML +="<body>";
 20 winHTML +="<form><input class=\"printbutton\" type=\"button\" value=\" Print this page \" onclick=\"window.print();return false;\" /></form> ";
 21 winHTML +="<center>";
 22 winHTML +="<H3>";
 23 winHTML += "UNITED STATES DISTRICT COURT <BR>";
 24 winHTML += form.districts.value.toUpperCase();
 25 winHTML +="<P>";
 26 winHTML +="</H3>";
 27 winHTML +="<u>CIVIL COVER SHEET</u>";
 28 winHTML +="</center>";
 29 winHTML +="<P>";
 30 winHTML +="<p><font size=\"2\">This automated JS-44 conforms generally to the manual JS-44 " +
 31 "approved by the Judicial Conference of the United States in September 1974. The " +
 32 "data is required for the use of the Clerk of Court for the purpose of initiating " +
 33 "the civil docket sheet. The information contained herein neither replaces nor " +
 34 "supplements the filing and service of pleadings or other papers as required by " +
 35 "law. </font></p>";
 36 
 37 // Plaintiff and Defendant Info Section
 38 
 39 function getInfo(info,type){
 40      
 41      if(debug) alert("Info Item " + x + " for type: " + type + " = " + info[x]);
 42      var fields = info[x].split('|');
 43      
 44      for(var y=0; y < fields.length; y++)
 45         {
 46           if(fields[y].match(/title/g))
 47           {
 48             //if(debug) alert("Title is: " + fields[y]);
 49             var p_title = fields[y].split(':');
 50             if(debug) alert("Title is: " + p_title[1]);
 51           }
 52           if(fields[y].match(/generation/g))
 53           {
 54             //if(debug) alert("Generation is: " + fields[y]);
 55             var p_generation = fields[y].split(':');
 56             if(debug) alert("Generation is: " + p_generation[1]);
 57           }
 58           if(fields[y].match(/fname/g))
 59           {
 60             //if(debug) alert("First Name Field is: " + fields[y]);
 61             var p_fname = fields[y].split(':');
 62             if(debug) alert("First Name Value is: " + p_fname[1]);
 63           }
 64           if(fields[y].match(/mname/g))
 65           {
 66             //if(debug) alert("Middle Name Field is: " + fields[y]);
 67             var p_mname = fields[y].split(':');
 68             if(debug) alert("Middle Name Value is: " + p_mname[1]);
 69           }          
 70           if(fields[y].match(/lname/g))
 71           {
 72             //if(debug) alert("Last Name Field is: " + plafields[y]);
 73             var p_lname = fields[y].split(':');
 74             if(debug) alert("Last Name Value is: " + p_lname[1]);
 75           }
 76           if(type == "plaintiff" || type == "defendant"){
 77 	          if(fields[y].match(/citizenship/g))
 78 	          {
 79 	            //if(debug) alert("Citizenship Field is: " + plafields[y]);
 80 	            var p_citizen = fields[y].split(':');
 81 	            if(debug) alert("Citizenship Value is: " + p_citizen[1]);
 82 	          }
 83 	         if(fields[y].match(/sor/g))
 84               {
 85             	//if(debug) alert("State of Residence Field is: " + plafields[y]);
 86            		 var p_sor = fields[y].split(':');
 87             	if(debug) alert("State of Residence is: " + p_sor[1]);
 88           	  }
 89          
 90           }else{
 91           
 92                //05.07.09  RRW - Updated to add attorney fields....
 93                
 94                if(fields[y].match(/firm/g))
 95                {
 96             	//if(debug) alert("Firm Field is: " + plafields[y]);
 97            		var p_firm = fields[y].split(':');
 98             	if(debug) alert("Firm is: " + p_firm[1]);
 99           	   }
100                if(fields[y].match(/address/g))
101                {
102             	//if(debug) alert("Address Field is: " + plafields[y]);
103            		var p_address = fields[y].split(':');
104             	if(debug) alert("Address is: " + p_address[1]);
105           	   }
106                if(fields[y].match(/city/g))
107                {
108             	//if(debug) alert("City Field is: " + plafields[y]);
109            		var p_city = fields[y].split(':');
110             	if(debug) alert("City is: " + p_city[1]);
111           	   }
112                if(fields[y].match(/state/g))
113                {
114             	//if(debug) alert("State Field is: " + plafields[y]);
115            		var p_state = fields[y].split(':');
116             	if(debug) alert("State is: " + p_state[1]);
117           	   }
118                if(fields[y].match(/zip/g))
119                {
120             	//if(debug) alert("Zip is: " + plafields[y]);
121            		var p_zip = fields[y].split(':');
122             	if(debug) alert("Zip is: " + p_zip[1]);
123           	   }
124                if(fields[y].match(/phone/g))
125                {
126             	//if(debug) alert("Phone is: " + plafields[y]);
127            		var p_phone = fields[y].split(':');
128             	if(debug) alert("Phone is: " + p_phone[1]);
129           	   }
130 
131           }
132 
133       }// End of for loop...
134          
135          //5.11.09 RRW - 
136          
137          
138          if(!p_lname){var lname = "";}else{var lname = p_lname[1];}
139          if(!p_fname){var fname = "";}else{var fname = p_fname[1];}
140          if(!p_title){var title = "";}else{var title = p_title[1];}
141          if(!p_mname){var mname = "";}else{var mname = p_mname[1];}
142          if(!p_generation){var generation = "";}else{var generation = p_generation[1];}
143          if(type == "plaintiff" || type == "defendant"){
144          if(!p_sor){var sor = "";}else{var sor = p_sor[1];}
145          if(!p_citizen){var citizen = "";}else{var citizen = p_citizen[1];}
146          return [fname,lname,citizen,sor,title,generation,mname];
147          }else{
148          if(!p_firm){var firm = "";}else{var firm = p_firm[1];}
149          if(!p_address){var address = "";}else{var address = p_address[1];}
150          if(!p_city){var city = "";}else{var city = p_city[1];}
151          if(!p_state){var state = "";}else{var state = p_state[1];}
152          if(!p_zip){var zip = "";}else{var zip = p_zip[1];}
153          if(!p_phone){var phone = "";}else{var phone = p_phone[1];}
154          if(!p_title){var title = "";}else{var title = p_title[1];}
155          if(!p_mname){var mname = "";}else{var mname = p_mname[1];}
156          if(!p_generation){var generation = "";}else{var generation = p_generation[1];}
157          return [fname,lname,firm,address,city,state,zip,phone,title,generation,mname];
158          }
159        
160   
161 }// End getInfo()
162 
163 winHTML +=" <table width=\"100%\" border=\"0\">";
164 winHTML +="   <tr valign=\"top\">";
165 winHTML +="     <td colspan=\"2\"><strong>Plaintiff(s):</strong></td>";
166 winHTML +="     <td><strong>Defendant(s):</strong></td>";
167 winHTML +="   </tr>";
168 winHTML +="   <tr valign=\"top\">";
169 
170 // 4.24.09 RRW - Get Plaintiff info...
171 winHTML +="<td colspan=\"2\">";
172 if(form.elements['plaintiff_info'].value){
173 var plarecs = form.elements['plaintiff_info'].value.split('^');
174 for(var x=0; x < plarecs.length; x++){
175 var isPlaInfo = 1;
176 var pla_info = getInfo(plarecs,"plaintiff");
177 
178         if(x==0){
179         var pla_citizen = pla_info[2];
180         winHTML +="<font color=\"red\" size=\"2\">First Listed Plaintiff: </font><br>";
181         winHTML +="<font size=\"2\">" + pla_info[4]+ " " + pla_info[0] + " " + pla_info[6] + " "  + pla_info[1] + " " + pla_info[5] + ";</font><br>"; //Title, First Name, Middle Name, Last Name, Generation    
182         //5.11.09 RRW - Added check for Basis of Jurisdiction. Citizenship should appear on form only if Basis of Jur matches "4. Diversity...."
183         if(basisOfJur.match(/Diversity/g)){winHTML +="<font size=\"2\">" + pla_info[2] + "; " + pla_info[3] + "</font><br>"; }
184         winHTML +="<font size=\"2\"><b>County of Residence: </b>" + form.plaintiff_county.value + "</font><p>";
185         //winHTML +="<font color=\"red\" size=\"2\">Additional Plaintiff(s): </font><br>";
186         var flist_pla = pla_info[0] + " " + pla_info[1];
187         }else{
188         if(x==1){winHTML +="<font color=\"red\" size=\"2\">Additional Plaintiff(s): </font><br>";}
189         winHTML +="<font size=\"2\">" + pla_info[4]+ " " + pla_info[0] + " " + pla_info[6] + " "  + pla_info[1] + " " + pla_info[5] + ";</font><br>"; //Title, First Name, Middle Name, Last Name, Generation       
190         if(basisOfJur.match(/Diversity/g)){winHTML +="<font size=\"2\">" +  pla_info[2] + "; " + pla_info[3] + "</font><p>"; }
191         }
192   }
193 }
194 winHTML +="</td>"; 
195 // End capture Plaintiff info...
196 
197 //winHTML +="     <td>" + form.elements['defendant_info'].value + "</td>";
198 // 4.24.09 RRW - Get Defendant info...
199 winHTML +="<td>";
200 if(form.elements['defendant_info'].value){
201 var isDftInfo = 1;
202 var dftrecs = form.elements['defendant_info'].value.split('^');
203 for(var x=0; x < dftrecs.length; x++){
204 var dft_info = getInfo(dftrecs,"defendant");
205 
206         if(x==0){
207         var dft_citizen = dft_info[2];
208         winHTML +="<font color=\"red\" size=\"2\">First Listed Defendant: </font><br>";
209         winHTML +="<font size=\"2\">" + dft_info[4]+ " " + dft_info[0] + " " + dft_info[6] + " "  + dft_info[1] + " " + dft_info[5] + ";</font><br>";  //Title, First Name, Middle Name, Last Name, Generation        
210          if(basisOfJur.match(/Diversity/g)){winHTML +="<font size=\"2\">" + dft_info[2] + "; " + dft_info[3] + "</font><br>";}
211         winHTML +="<font size=\"2\"><b>County of Residence: </b>" + form.defendant_county.value + "</font><p>";
212         //winHTML +="<font color=\"red\" size=\"2\">Additional Defendant(s): </font><br>";
213         var flist_dft = dft_info[0] + " " + dft_info[1]; 
214         }else{
215         if(x==1){winHTML +="<font color=\"red\" size=\"2\">Additional Defendants(s): </font><br>";}
216         winHTML +="<font size=\"2\">" + dft_info[4]+ " " + dft_info[0] + " " + dft_info[6] + " "  + dft_info[1] + " " + dft_info[5] + ";</font><br>";  //Title, First Name, Middle Name, Last Name, Generation         
217          if(basisOfJur.match(/Diversity/g)){winHTML +="<font size=\"2\">" + dft_info[2] + "; " + dft_info[3] + "</font><p>";}
218         }
219  }
220 }
221 
222 winHTML +="</td>"; 
223 // End capture Defendant info...
224 
225 winHTML +="   </tr>";
226 /*
227 winHTML +="   <tr valign=\"top\">";
228 winHTML +="     <td colspan=\"2\"><b>County of Residence: </b>" + form.plaintiff_county.value + "</td>";
229 winHTML +="     <td><b>County of Residence: </b>" + form.defendant_county.value + "</td>";
230 winHTML +="   </tr>";
231 */
232 winHTML +="   <tr valign=\"top\">";
233 winHTML +="     <td colspan=\"2\"> </td>";
234 winHTML +="     <td> </td>";
235 winHTML +="   </tr>";
236 winHTML +="   <tr valign=\"top\">";
237 winHTML +="     <td colspan=\"3\"><b>County Where Claim For Relief Arose: </b>" + form.claim_county.value + "</td>";
238 winHTML +="   </tr>";
239 winHTML +="   <tr valign=\"top\">";
240 winHTML +="     <td colspan=\"2\"> </td>";
241 winHTML +="     <td> </td>";
242 winHTML +="   </tr>";
243 winHTML +="   <tr valign=\"top\">";
244 winHTML +="     <td colspan=\"2\"><b>Plaintiff's Attorney(s):</b></td>";
245 winHTML +="     <td><b>Defendant's Attorney(s):</b></td>";
246 winHTML +="   </tr>";
247 winHTML +="   <tr valign=\"top\">";
248 // 4.24.09 RRW - Get Plaintiff Attorney info...
249 //winHTML +="     <td colspan=\"2\">" + form.elements['plaintiffaty_info'].value + "</td>";
250 winHTML +="<td colspan=\"2\">";
251 if(form.elements['plaintiffaty_info'].value){
252 var pla_attyrecs = form.elements['plaintiffaty_info'].value.split('^');
253 for(var x=0; x < pla_attyrecs.length; x++){
254 var isPlaAttyInfo = 1;
255 var plaatty_info = getInfo(pla_attyrecs,"plaintiffaty");
256 
257         if(x == 0){
258         winHTML += "<font size=\"2\">" + plaatty_info[8] + " " + plaatty_info[0] + " " + plaatty_info[10] + " " + plaatty_info[1] + " " + plaatty_info[9] + " (" +  flist_pla + ")</font><br>"; //Title, First Name, Middle Name, Last Name, Generation
259         }else{
260         winHTML += "<font size=\"2\">" + plaatty_info[8] + " " + plaatty_info[0] + " " + plaatty_info[10] + " " + plaatty_info[1] + " " + plaatty_info[9] + "</font><br>"; // Title, First Name, Middle Name, Last Name, Generation
261         }
262         winHTML += "<font size=\"2\">" + plaatty_info[2] + "</font><br>";  //Firm
263         winHTML += "<font size=\"2\">" + plaatty_info[3] + "</font><br>"; //Address
264         winHTML += "<font size=\"2\">" + plaatty_info[4] + ", " + plaatty_info[5] + " " + plaatty_info[6] + "</font><br>"; //City, State Zip
265         winHTML += "<font size=\"2\">" + plaatty_info[7] + "</font><p>"; //Phone
266         }
267 }
268 winHTML +="</td>"; 
269 // 4.24.09 RRW - Get Defendant Attorney info...
270 //nHTML +="     <td>" + form.elements['defendantaty_info'].value + "</td>";
271 winHTML +="<td colspan=\"2\">";
272 if(form.elements['defendantaty_info'].value){
273 var dft_attyrecs = form.elements['defendantaty_info'].value.split('^');
274 for(var x=0; x < dft_attyrecs.length; x++){
275 var isDftAttyInfo = 1;
276 var dftatty_info = getInfo(dft_attyrecs,"defendantaty");
277 
278         //winHTML += dftatty_info[0] + " " + dftatty_info[1] + "; " + dftatty_info[2] + "</font><p>"; 
279         if(x == 0){
280         winHTML += "<font size=\"2\">" + dftatty_info[8] + " " + dftatty_info[0] + " " + dftatty_info[10] + " " + dftatty_info[1] + " " + dftatty_info[9] + " (" +  flist_dft + ")</font><br>"; //First Name, Last Name
281         }else{
282         winHTML += "<font size=\"2\">" + dftatty_info[8] + " " + dftatty_info[0] + " " + dftatty_info[10] + " " + dftatty_info[1] + " " + dftatty_info[9] + "</font><br>"; //First Name, Last Name
283         }
284         winHTML += "<font size=\"2\">" + dftatty_info[2] + "</font><br>";  //Firm
285         winHTML += "<font size=\"2\">" + dftatty_info[3] + "</font><br>"; //Address
286         winHTML += "<font size=\"2\">" + dftatty_info[4] + ", " + dftatty_info[5] + " " + dftatty_info[6] + "</font><br>"; //City, State Zip
287         winHTML += "<font size=\"2\">" + dftatty_info[7] + "</font><p>"; //Phone
288         }             
289 
290 }
291 winHTML +="   </tr>";
292 /*
293 winHTML +="   <tr valign=\"top\">";
294 winHTML +="     <td colspan=\"2\"> </td>";
295 winHTML +="     <td> </td>";
296 winHTML +="   </tr>";
297 winHTML +="   <tr valign=\"top\">";
298 winHTML +="     <td colspan=\"3\"><b>County Where Claim For Relief Arose: </b>" + form.claim_county.value + "</td>";
299 winHTML +="   </tr>";
300 */
301 winHTML +="   <tr valign=\"top\">";
302 winHTML +="     <td colspan=\"2\"> </td>";
303 winHTML +="     <td> </td>";
304 winHTML +="   </tr>";
305 winHTML +="  </table>";
306 
307 // Case Info Section
308 winHTML +=" <table width=\"100%\" border=\"0\">";
309         if(form.ifp.checked){
310 winHTML +="     <tr><td colspan=\"3\" valign=\"top\"><font size=2><strong>IFP REQUESTED</strong></font></td></tr>";
311          }  
312         if(form.elements['PrevRewardReview'].value == "Yes"){
313 winHTML +="   <tr><td colspan=\"3\" valign=\"top\"><font size=2><strong>SEEKS REVIEW OF PREVIOUS REWARD FOR CASE #" + form.elements['PrevRewardReview_CaseNum'].value + "</TD></tr>";
314  	     }  
315         if(form.unconstitutional.value == "Yes"){
316 winHTML +="   <tr><td colspan=\"3\" valign=\"top\"><font size=2><strong>CHALLENGE TO THE CONSTITUTIONALITY";
317 winHTML +="   OF A FEDERAL OR STATE STATUTE (SEE FRCP 5.1)</strong></font></td></tr>";
318  	     }  
319 winHTML +="   <tr></tr>";
320 winHTML +="   <tr valign=\"top\">";
321 winHTML +="     <td colspan=\"3\"><strong>Basis of Jurisdiction: </strong><font size=\"3\">" + form.basis_of_jur.value + "</font></td>";
322 winHTML +="   </tr>";
323 winHTML +="   <tr valign=\"top\">";
324 winHTML +="     <td colspan=\"3\"> </td>";
325 winHTML +="   </tr>";
326 winHTML +="   <tr valign=\"top\">";
327 winHTML +="     <td colspan=\"3\"><strong>Citizenship of Principal Parties</strong> (Diversity Cases Only)</td>";
328 winHTML +="   </tr>";
329 winHTML +="   <tr valign=\"top\">";
330 winHTML +="     <td>      <strong><font size=\"2\">Plaintiff:</font></strong>";
331 if(isPlaInfo && basisOfJur.match(/Diversity/g)){
332 winHTML +="     <font size=\"2\">" + pla_citizen + "</font></td>";
333 }else{
334 winHTML +="     <font size=\"2\">N/A</font></td>";
335 }
336 winHTML +="     <td> </td>";
337 winHTML +="   </tr>";
338 winHTML +="   <tr valign=\"top\">";
339 winHTML +="     <td>      <strong><font size=\"2\">Defendant:</font></strong>";
340 if(isDftInfo && basisOfJur.match(/Diversity/g)){
341 winHTML +="     <font size=\"2\">" + dft_citizen + "</font></td>";
342 }else{
343 winHTML +="     <font size=\"2\">N/A</font></td>";
344 }
345 winHTML +="     <td> </td>";
346 winHTML +="   </tr>";
347 winHTML +="   <tr valign=\"top\">";
348 winHTML +="     <td colspan=\"2\"> </td>";
349 winHTML +="     <td> </td>";
350 winHTML +="   </tr>";
351 winHTML +="   <tr valign=\"top\">";
352 winHTML +="     <td colspan=\"2\"><strong>Type:</strong></td>";
353 winHTML +="     <td> </td>";
354 winHTML +="   </tr>";
355 winHTML +="   <tr valign=\"top\">";
356 winHTML +="     <td>      <font size=\"2\"><strong>Plaintiff: </strong></font>";
357 winHTML +="     <font size=\"2\">" + form.elements['plaintiff_type'].value;
358         if(form.elements['plaintiff_gov_type'].value)
359           {
360             winHTML +="; " + form.elements['plaintiff_gov_type'].value + "</font></td>";               
361         }else{
362             winHTML +="</font></td>";
363         }
364                 
365 winHTML +="     <td> </td>";
366 winHTML +="   </tr>";
367 winHTML +="   <tr valign=\"top\">";
368 winHTML +="     <td>      <font size=\"2\"><strong>Defendant: </strong></font>";
369 winHTML +="     <font size=\"2\">" + form.elements['defendant_type'].value;
370         if(form.elements['defendant_gov_type'].value)
371           {
372             winHTML +="; " + form.elements['defendant_gov_type'].value + "</font></td>";               
373         }else{
374             winHTML +="</font></td>";
375         }
376 winHTML +="     <td> </td>";
377 winHTML +="   </tr>";
378 winHTML +="   <tr valign=\"top\">";
379 winHTML +="     <td colspan=\"2\"> </td>";
380 winHTML +="     <td> </td>";
381 winHTML +="   </tr>";
382 winHTML +="   <tr valign=\"top\">";
383 winHTML +="     <td colspan=\"2\"><strong>Origin:</strong> " + form.origin.value + "</td>";
384 winHTML +="     <td> </td>";
385 winHTML +="   </tr>";
386        if(form.origin.selectedIndex == 1){
387 winHTML +="   <tr valign=\"top\">";
388 winHTML +="     <td>      <font size=\"2\"><strong>State Removal County: </strong>" + form.stateremoval_co.value + "</font></td>";
389 winHTML +="     <td> </td>";
390 winHTML +="   </tr>";
391 winHTML +="   <tr valign=\"top\">";
392 winHTML +="     <td>      <font size=\"2\"><strong>State Removal Case Number: </strong>" + form.stateremoval_casenum.value + "</font></td>";
393 winHTML +="     <td> </td>";
394 winHTML +="   </tr>";
395         }else if(form.origin.selectedIndex == 4){
396 winHTML +="   <tr valign=\"top\">";
397 winHTML +="     <td>      <font size=\"2\"><strong>District: </strong>" + form.transfer_district.value + "</font></td>";
398 winHTML +="     <td> </td>";
399 winHTML +="   </tr>";
400 winHTML +="   <tr valign=\"top\">";
401 winHTML +="     <td>      <font size=\"2\"><strong>Case Number: </strong>" + form.transfer_casenum.value + "</font></td>";
402 winHTML +="     <td> </td>";
403 winHTML +="   </tr>";
404         }else{
405 winHTML +="   <td colspan=\"3\"> </td>";
406  	    }
407 winHTML +="   <tr valign=\"top\">";
408 winHTML +="     <td colspan=\"3\"><strong>Nature of Suit:</strong> ";
409         for (var i=0; i < form.NOS.length; i++)
410             {
411                if (form.NOS[i].checked)
412                {
413 winHTML +="  "  +  form.NOS[i].value + "</td>";
414                }
415 
416             }
417 winHTML +="   </tr>";
418 winHTML +="   <tr valign=\"top\">";
419 winHTML +="     <td colspan=\"3\"><strong>Cause of Action:</strong> " +  form.Cause_of_Action.value + "</td>";
420 winHTML +="     <td> </td>";
421 winHTML +="   </tr>";
422 winHTML +="   <tr valign=\"top\">";
423 winHTML +="     <td colspan=\"2\"><strong>Requested in Complaint  </strong></td>";
424 winHTML +="     <td> </td>";
425 winHTML +="   </tr>";
426 winHTML +="   <tr valign=\"top\">";
427 winHTML +="     <td colspan=\"3\" valign=\"top\">      <strong><font size=\"2\">Class Action: </font></strong>";
428         for (var i=0; i < form.class_action.length; i++)
429             {
430               if (form.class_action[i].checked)
431               {
432 winHTML +="     <font size=\"2\">" + form.class_action[i].value + "</font></td>";
433               }
434             }  
435 winHTML +="   </tr>";
436 winHTML +="   <tr valign=\"top\">";
437 winHTML +="     <td colspan=\"3\" valign=\"top\">      <strong><font size=\"2\">Dollar Demand: </font></strong>";
438 winHTML +="     <font size=\"2\">" + form.demand.value + "</font></td>";
439 winHTML +="     <td> </td>";
440 winHTML +="   </tr>";
441 winHTML +="   <tr valign=\"top\">";
442 winHTML +="     <td colspan=\"3\" valign=\"top\">      <strong><font size=\"2\">Jury Demand: </font></strong>";
443        for (var i=0; i < form.jury_demand.length; i++)
444             {
445              if (form.jury_demand[i].checked)
446                {
447 winHTML +="     <font size=\"2\">" + form.jury_demand[i].value + "</font></td>";
448                }
449             }
450 winHTML +="     <td> </td>";
451 winHTML +="   </tr>";
452 winHTML +="   <tr valign=\"top\">";
453 winHTML +="     <td colspan=\"3\" valign=\"top\">      <strong><font size=\"2\">Related Cases: </font></strong>";
454 for (var i=0; i < form.refiling.length; i++)
455    {
456    if (form.refiling[i].checked)
457       {
458         if(i==0){
459            winHTML +=" <font size=\"2\">" + form.refiling[i].value;
460            winHTML +=" a refiling of a previously dismissed action</font></td>"; 
461            }
462         if(i==1){  
463           winHTML +="  <font size=\"2\">" + form.refiling[i].value;
464           winHTML +="  to case number " + form.related_no.value + ", assigned to Judge " + form.related_judge.value + "</font></td>";
465           }
466         if(i==2){
467            winHTML +="  <font size=\"2\">" + form.refiling[i].value;
468            winHTML +="  a refiling of case number " + form.refile_no.value + ", assigned to Judge " + form.refile_judge.value + "</font></td>";
469           }  
470      }
471    }
472 winHTML +="   </tr>";
473 winHTML +=" </table>";
474 
475 // Signature Section
476 
477 winHTML +="<p>";
478 winHTML +="<hr noshade>";
479 if(form.sheet_signature.value){
480 winHTML +="<p><b>Signature: </b>" + form.sheet_signature.value + "</p>";
481 }else{
482 winHTML +="<p><b>Signature: </b>__________________________________</p>";
483 }
484 if(form.sheet_date.value){
485 winHTML +="<p><b>Date: </b> " + form.sheet_date.value + "</p>";
486 }else{
487 winHTML +="<p><b>Date: </b>_____________</p>";
488 }
489 winHTML +="<blockquote>";
490 winHTML +="  <p><font size=\"1\">If any of this information is incorrect, please go back to";
491 winHTML +="  the Civil Cover Sheet Input form using the <em>Back</em> button in your";
492 winHTML +="  browser and change it. Once correct, print this form, sign and date it and";
493 winHTML +="  submit it with your new civil action. </font><small><strong>";
494 winHTML +="  </p>";
495 winHTML +="</blockquote>";
496 winHTML +="";
497 winHTML +="";
498 winHTML +="";
499 winHTML +="";
500 winHTML +="";
501 winHTML +="</center>";
502 winHTML += "</body></html>";  
503 newWin.document.write(winHTML);
504 newWin.document.close();
505 }