rem: var xml = rslt.responseXML;   var n = this.Map.markers.length; this.Map.markers[n] = new Array(); var m = this.Map.markers[n];   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('lng'); m.lng = 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);   this.Map.attachMarker(n, true);  $('markerform_new').reset(); this.removeAssistant();  this.editMarkers(); this.editSet(editSetId); 
add: var xml = rslt.responseXML;   var n = this.Map.markers.length;   var m = this.Map.markers[n] = {};   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('lng'); m.lng = 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 != null )?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);   this.Map.addMarker(n);  this.removeAssistant();  this.editMarkers(); this.editSet(this.editSetId); 
context: 	"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('lng');				m.lng = 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/2007_temp/2007/1713/069954f77658c0cef896d270f2874840d69aa411/Edit.js/buggy/templates/Edit.js