add:  for(a=0; a<bLSetData.length; a++){ if ( ( bLSetData[a] != null ) && ( bLSetData[a].set_id == editSetId ) ){ s = a; editArray = bLSetData[a].set_type; } }; 
context: 	 function addPolyline(rslt){      	var xml = rslt.responseXML;	 		var s;			var n;			var p;			if (editArray == "init_polylines"){  			n = bILData.length;  			bILData[n] = new Array();				p = bILData[n];  			p.array = "I";  			p.array_n = n;			}else{  			n = bSLData.length;  			bSLData[n] = new Array();				p = bSLData[n];  			p.array = "S";  			p.array_n = n;			};				 		//shorten var names			var id = xml.documentElement.getElementsByTagName('polyline_id');						p.polyline_id = id[0].firstChild.nodeValue;			var nm = xml.documentElement.getElementsByTagName('name');			p.name = nm[0].firstChild.nodeValue;			var dt = xml.documentElement.getElementsByTagName('points_data');			var points_data = dt[0].firstChild.nodeValue;	 		p.points_data = points_data.split(",");						var bt = xml.documentElement.getElementsByTagName('border_text');			p.border_text = bt[0].firstChild.nodeValue;			var zi = xml.documentElement.getElementsByTagName('zindex');			p.zindex = parseInt(zi[0].firstChild.nodeValue);						//this is such a crappy way to get this number			for(var a=0; a<bLSetData.length; a++){					if (bLSetData[a].set_id == editSetId){						 s = a;					}			};						p.set_id = parseFloat(bLSetData[s].set_id);			p.style_id = parseFloat(bLSetData[s].style_id);			//create polyline			if (p.style_id == 0){				defineGPolyline(p.array, p.array_n, null);			}else{				var stylen;				for (var b=0; b<bLStyData.length; b++){					if ( bLStyData[b].style_id == p.style_id ){						stylen = b;					}				}				if ( bLStyData[stylen].type == 0){					defineGPolyline(p.array, p.array_n, stylen);				}else{					defineXPolyline(p.array, p.array_n, stylen);				}			}			// clear the form			$('polylineform_new').reset();			// update the sets menus			editPolylines();			editPolylineSet(editSetId);			removeAssistant();	}	
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/6b5a8d1aa2ecaa015ed076d76eaa3eead2a0b56c/formsubmit.js/clean/templates/formsubmit.js