rem: for(a=0; a<this.Map.MarkerSets.length; a++){ if ( ( this.Map.MarkerSets[a] != null ) && ( this.Map.MarkerSets[a].set_id == this.editSetId ) ){ 
add: for(a=0; a<this.Map.markersets.length; a++){ if ( ( this.Map.markersets[a] != null ) && ( this.Map.markersets[a].set_id == this.editSetId ) ){ 
context: BitMap.Edit.prototype.addMarker = function(rslt){      var xml = rslt.responseXML;	 		//the marker data we are changing			var n = this.Map.Markers.length;			this.Map.Markers[n] = new Array();			var m = this.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<this.Map.MarkerSets.length; a++){				if ( ( this.Map.MarkerSets[a] != null ) && ( this.Map.MarkerSets[a].set_id == this.editSetId ) ){					s = a;				}			};			m.set_id = this.Map.MarkerSets[s].set_id;			m.style_id = this.Map.MarkerSets[s].style_id;			m.icon_id = this.Map.MarkerSets[s].icon_id;			m.plot_on_load = this.Map.MarkerSets[s].plot_on_load;			m.side_panel = this.Map.MarkerSets[s].side_panel;			m.explode = this.Map.MarkerSets[s].explode;			m.array_n = parseInt(n);        //make the marker			this.Map.attachMarker(n, true);			// clear the form			$('markerform_new').reset();			this.removeAssistant();			// update the sets menus			this.editMarkers();			this.editSet(editSetId);}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js