rem: if ( ( Map.MarkerSets[a] != null ) && ( Map.MarkerSets[a].set_id == editSetId ) ){ 
add: if ( ( Map.MarkerSets[a] != null ) && ( Map.MarkerSets[a].set_id == BitMap.Edit.editSetId ) ){ 
context: BitMap.Edit.addMarker = function(rslt){	    //@todo change this - bad harding coded ref to the map data - not nice      var Map = BitMap.MapData[0].Map;            var xml = rslt.responseXML;	 		//the marker data we are changing			var n = Map.Markers.length;			Map.Markers[n] = new Array();			var m = Map.Markers[n];	 		//shorten var names			var id = xml.documentElement.getElementsByTagName('id');						m.marker_id = id[0].firstChild.nodeValue;			var ty = xml.documentElement.getElementsByTagName('marker_type');						m.marker_type = ty[0].firstChild.nodeValue;			var tl = xml.documentElement.getElementsByTagName('title');			m.title = tl[0].firstChild.nodeValue;			var lt = xml.documentElement.getElementsByTagName('lat');			m.lat = parseFloat(lt[0].firstChild.nodeValue);			var ln = xml.documentElement.getElementsByTagName('lon');			m.lon = parseFloat(ln[0].firstChild.nodeValue);			var dt = xml.documentElement.getElementsByTagName('data');			m.data = dt[0].firstChild.nodeValue;			var pdt = xml.documentElement.getElementsByTagName('parsed_data');	 		m.parsed_data = pdt[0].firstChild.nodeValue;			var l = xml.documentElement.getElementsByTagName('label');			m.label_data = l[0].firstChild.nodeValue;			var pu = xml.documentElement.getElementsByTagName('photo_url');			m.photo_url = pu[0].firstChild.nodeValue;			var z = xml.documentElement.getElementsByTagName('z');			m.zindex = parseInt(z[0].firstChild.nodeValue);	 		var s;			for(a=0; a<Map.MarkerSets.length; a++){				if ( ( Map.MarkerSets[a] != null ) && ( Map.MarkerSets[a].set_id == editSetId ) ){					s = a;				}			};			m.set_id = Map.MarkerSets[s].set_id;			m.style_id = Map.MarkerSets[s].style_id;			m.icon_id = Map.MarkerSets[s].icon_id;			m.plot_on_load = Map.MarkerSets[s].plot_on_load;			m.side_panel = Map.MarkerSets[s].side_panel;			m.explode = Map.MarkerSets[s].explode;			m.array_n = parseInt(n);        //make the marker			Map.attachMarker(n, true);			// clear the form			$('markerform_new').reset();			BitMap.Edit.removeAssistant();			// update the sets menus			BitMap.Edit.editMarkers();			BitMap.Edit.editSet(editSetId);}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/cc6f22930d4e12134b6173f5ac3df158f26afdfa/Edit.js/buggy/templates/Edit.js