rem: var xml = rslt.responseXML;  var s = this.Map.markersets[this.editObjectN]; var oldStyle = s.style_id; var oldIcon = s.icon_id;   var id = xml.documentElement.getElementsByTagName('set_id'); s.set_id = parseInt(id[0].firstChild.nodeValue); var nm = xml.documentElement.getElementsByTagName('name'); s.name = nm[0].firstChild.nodeValue; var dc = xml.documentElement.getElementsByTagName('description'); s.description = dc[0].firstChild.nodeValue; var sy = xml.documentElement.getElementsByTagName('style_id'); s.style_id = parseInt(sy[0].firstChild.nodeValue); var ic = xml.documentElement.getElementsByTagName('icon_id'); s.icon_id = parseInt(ic[0].firstChild.nodeValue); var pol = xml.documentElement.getElementsByTagName('plot_on_load'); if (pol[0].firstChild.nodeValue == 'true'){s.plot_on_load = true;}else{s.plot_on_load = false}; var sp = xml.documentElement.getElementsByTagName('side_panel'); if (sp[0].firstChild.nodeValue == 'true'){s.side_panel = true;}else{s.side_panel = false}; var ex = xml.documentElement.getElementsByTagName('explode'); if (ex[0].firstChild.nodeValue == 'true'){s.explode = true;}else{s.explode = false}; var cl = xml.documentElement.getElementsByTagName('cluster'); if (cl[0].firstChild.nodeValue == 'true'){s.cluster = true;}else{s.cluster = false};  if ( ( oldStyle != s.style_id ) || ( oldIcon != s.icon_id ) ) { a = this.Map.markers;  if (a.length > 0){  for(var n=0; n<a.length; n++){  if (a[n]!= null && a[n].plot_on_load == true){ if (a[n].set_id == s.set_id){ a[n].style_id = s.style_id; a[n].icon_id = s.icon_id;  this.Map.map.removeOverlay( a[n].marker );  this.Map.attachMarker(n); } } } } };   this.editMarkers(this.editObjectN); 
add: var xml = rslt.responseXML;  var s = this.Map.markersets[this.editObjectN]; var oldStyle = s.style_id; var oldIcon = s.icon_id;   var id = xml.documentElement.getElementsByTagName('set_id'); s.set_id = parseInt(id[0].firstChild.nodeValue); var nm = xml.documentElement.getElementsByTagName('name'); s.name = nm[0].firstChild.nodeValue; var dc = xml.documentElement.getElementsByTagName('description'); s.description = dc[0].firstChild.nodeValue; var sy = xml.documentElement.getElementsByTagName('style_id'); s.style_id = parseInt(sy[0].firstChild.nodeValue); var ic = xml.documentElement.getElementsByTagName('icon_id'); s.icon_id = parseInt(ic[0].firstChild.nodeValue); var pol = xml.documentElement.getElementsByTagName('plot_on_load'); if (pol[0].firstChild.nodeValue == 'true'){s.plot_on_load = true;}else{s.plot_on_load = false}; var sp = xml.documentElement.getElementsByTagName('side_panel'); if (sp[0].firstChild.nodeValue == 'true'){s.side_panel = true;}else{s.side_panel = false}; var ex = xml.documentElement.getElementsByTagName('explode'); if (ex[0].firstChild.nodeValue == 'true'){s.explode = true;}else{s.explode = false}; var cl = xml.documentElement.getElementsByTagName('cluster'); if (cl[0].firstChild.nodeValue == 'true'){s.cluster = true;}else{s.cluster = false};  if ( ( oldStyle != s.style_id ) || ( oldIcon != s.icon_id ) ) { a = this.Map.markers;  if (a.length > 0){  for(var n=0; n<a.length; n++){  if (a[n]!= null && a[n].plot_on_load == true){ if (a[n].set_id == s.set_id){ a[n].style_id = s.style_id; a[n].icon_id = s.icon_id;  this.Map.map.removeOverlay( a[n].marker );  this.Map.addMarker(n); } } } } }   this.editMarkerSetOptions(this.editObjectN); 
context: 	"updateMarkerSet": function(rslt){	      var xml = rslt.responseXML;					var s = this.Map.markersets[this.editObjectN];				var oldStyle = s.style_id;				var oldIcon = s.icon_id;			 		//shorten var names				var id = xml.documentElement.getElementsByTagName('set_id');							s.set_id = parseInt(id[0].firstChild.nodeValue);				var nm = xml.documentElement.getElementsByTagName('name');				s.name = nm[0].firstChild.nodeValue;				var dc = xml.documentElement.getElementsByTagName('description');				s.description = dc[0].firstChild.nodeValue;				var sy = xml.documentElement.getElementsByTagName('style_id');				s.style_id = parseInt(sy[0].firstChild.nodeValue);							var ic = xml.documentElement.getElementsByTagName('icon_id');				s.icon_id = parseInt(ic[0].firstChild.nodeValue);				var pol = xml.documentElement.getElementsByTagName('plot_on_load');				if (pol[0].firstChild.nodeValue == 'true'){s.plot_on_load = true;}else{s.plot_on_load = false};				var sp = xml.documentElement.getElementsByTagName('side_panel');				if (sp[0].firstChild.nodeValue == 'true'){s.side_panel = true;}else{s.side_panel = false};				var ex = xml.documentElement.getElementsByTagName('explode');				if (ex[0].firstChild.nodeValue == 'true'){s.explode = true;}else{s.explode = false};				var cl = xml.documentElement.getElementsByTagName('cluster');				if (cl[0].firstChild.nodeValue == 'true'){s.cluster = true;}else{s.cluster = false};					if ( ( oldStyle != s.style_id ) || ( oldIcon != s.icon_id ) ) {					a = this.Map.markers;	           	//if the length of the array is > 0	           	if (a.length > 0){	             	//loop through the array	           		for(var n=0; n<a.length; n++){	             		//if the array item is not Null	           			if (a[n]!= null && a[n].plot_on_load == true){	       					if (a[n].set_id == s.set_id){									a[n].style_id = s.style_id;									a[n].icon_id = s.icon_id;									//unload the marker	         				this.Map.map.removeOverlay( a[n].marker );	    						//define marker									this.Map.attachMarker(n);	       					}	       				}	       			}	       		}				};					// update the sets menus				this.editMarkers(this.editObjectN);	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/3b0fd7da6617f937913718490ab8362681e83a6f/Edit.js/buggy/templates/Edit.js