context: 	 function addMarker(rslt){	 		var s;      var xml = rslt.responseXML;							 		var m; //the marker data we are changing			//@todo modify this to handle either bIMData or bSMData sets			var n = bIMData.length;			bIMData[n] = new Array();				 		//shorten var names			var id = xml.documentElement.getElementsByTagName('id');						bIMData[n].marker_id = id[0].firstChild.nodeValue;			var tl = xml.documentElement.getElementsByTagName('title');			bIMData[n].title = tl[0].firstChild.nodeValue;									var lt = xml.documentElement.getElementsByTagName('lat');			bIMData[n].lat = parseFloat(lt[0].firstChild.nodeValue);						var ln = xml.documentElement.getElementsByTagName('lon');			bIMData[n].lon = parseFloat(ln[0].firstChild.nodeValue);			var dt = xml.documentElement.getElementsByTagName('data');			bIMData[n].data = dt[0].firstChild.nodeValue;						var l = xml.documentElement.getElementsByTagName('label');			bIMData[n].label_data = l[0].firstChild.nodeValue;						//@todo this is such a crappy way to get this number			for(var a=0; a<bMSetData.length; a++){					if (bMSetData[a].set_id == editSetId){						 s = a;						 break;						 						 					}			};						bIMData[n].set_id = parseFloat(bMSetData[s].set_id);			bIMData[n].style_id = parseFloat(bMSetData[s].style_id);			bIMData[n].icon_id = parseFloat(bMSetData[s].icon_id);						var z = xml.documentElement.getElementsByTagName('z');			bIMData[n].zindex = parseInt(z[0].firstChild.nodeValue);			bIMData[n].array = "I";			bIMData[n].array_n = parseFloat(n);			//create marker			//@todo this is redundant to the marker making loop toward the end of js_makegmap - consolidate in a function    	var point = new GPoint(parseFloat(bIMData[n].lon), parseFloat(bIMData[n].lat));    	bIMData[n].marker = new GMarker(point);    	bIMData[n].marker.my_html = "<div style='white-space: nowrap;'><strong>"+bIMData[n].title+"</strong><p>"+bIMData[n].data+"</p></div>";    	map.addOverlay(bIMData[n].marker);    	//add the marker label if it exists    	if (typeof(bIMData[n].label_data) != 'undefined'){    		var topElement = bIMData[n].marker.iconImage;    		if (bIMData[n].marker.transparentIcon) {topElement = bIMData[n].marker.transparentIcon;}    		if (bIMData[n].marker.imageMap) {topElement = bIMData[n].marker.imageMap;}    		topElement.setAttribute( "title" , bIMData[n].label_data );    	}						bIMData[n].marker.openInfoWindowHtml(bIMData[n].marker.my_html);			// clear the form			$('markerform_new').reset();			// update the sets menus			editMarkers();			editSet(editSetId);	}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/4385306eabb6f10e6fc3999091d222d51de6c23c/formsubmit.js/clean/templates/formsubmit.js