rem: var newPolylineForm = document.getElementById('polylineform_0').cloneNode(true); 
add: var newPolylineForm = $('polylineform_0').cloneNode(true); 
context: function editPolylines(){				   			show('editpolylineform');				/* get rid of any extra fields we may have created 				 * if this has been called once before				 * this way we dont add any extra fields				 */				for (i=1; i<bILData.length; i++){				 if(document.getElementById('polylineform_'+i)){    				var extraPolylineForm = document.getElementById('polylineform_'+i);						document.getElementById('editpolylinetable').removeChild(extraPolylineForm);					}				}				/* add more fields and fill them with data */				for (i=0; i<bILData.length; i++) {						if( i < (bILData.length-1) ){    				var newPolylineForm = document.getElementById('polylineform_0').cloneNode(true);										newPolylineForm.id = "polylineform_"+(i+1);						document.getElementById('editpolylinetable').appendChild(newPolylineForm);					}					form = document.getElementById('polylineform_'+(i));										        	form.polyline_id.value = bILData[i].polyline_id;        	form.line_name.value = bILData[i].name;        	for (var j=0; j < 2; j++) {             if (form.line_type.options[j].value == bILData[i].type){                form.line_type.options[j].selected=true;             }          }					        	form.line_data.value = bILData[i].points_data;        	form.line_bordertext.value = bILData[i].border_text;        	form.line_z.value = bILData[i].zindex;        	form.line_array.value = bILData[i].array;        	form.line_array_n.value = bILData[i].array_n;					    			/* @todo include the following             bILData[i].set_id;            bILData[i].style_id;    				*/									}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/6cdc1461898e9e5242e02a6228a7466af2fd254f/formsubmit.js/clean/templates/formsubmit.js