rem: var t = xml.documentElement.getElementsByTagName('title'); 
add: var id = xml.documentElement.getElementsByTagName('gmap_id'); bMapID = id[0].firstChild.nodeValue;  var t = xml.documentElement.getElementsByTagName('title'); 
context: 	 function updateMap(rslt){      var xml = rslt.responseXML;	 		//shorten var names			var t = xml.documentElement.getElementsByTagName('title');			bMapTitle = t[0].firstChild.nodeValue;						var d = xml.documentElement.getElementsByTagName('desc');			bMapDesc = d[0].firstChild.nodeValue;						var w = xml.documentElement.getElementsByTagName('w');			bMapWidth = w[0].firstChild.nodeValue;						var h = xml.documentElement.getElementsByTagName('h');			bMapHeight = h[0].firstChild.nodeValue;						var lt = xml.documentElement.getElementsByTagName('lat');			bMapLat = parseFloat(lt[0].firstChild.nodeValue);						var ln = xml.documentElement.getElementsByTagName('lon');			bMapLon = parseFloat(ln[0].firstChild.nodeValue);						var z = xml.documentElement.getElementsByTagName('z');			bMapZoom = parseInt(z[0].firstChild.nodeValue);						var ss = xml.documentElement.getElementsByTagName('scale');			bMapScale = ss[0].firstChild.nodeValue;						var sc = xml.documentElement.getElementsByTagName('cont');			bMapControl = sc[0].firstChild.nodeValue;						var sm = xml.documentElement.getElementsByTagName('typecon');			bMapTypeCont = sm[0].firstChild.nodeValue;						var mt = xml.documentElement.getElementsByTagName('maptype');			bMapType = bMapTypes[mt[0].firstChild.nodeValue];						//replace everything	      var maptile = $('mymaptitle');      if (maptile){maptile.innerHTML=bMapTitle;}      var mapdesc = $('mymapdesc');      if (mapdesc){mapdesc.innerHTML=bMapDesc;}      var mapdiv = $('map');			if (bMapWidth !== '0' && bMapWidth !== 0){			   var newWidth = bMapWidth + "px";				}else{			   var newWidth = 'auto';				}			if (bMapHeight !== '0' && bMapHeight !== 0){			   var newHeight = bMapHeight + "px";				}else{			   var newHeight = 'auto';				}      if (mapdiv){mapdiv.style.width=newWidth; mapdiv.style.height=newHeight; map.onResize();}						map.setMapType(bMapType);			      //Add Map TYPE controls - buttons in the upper right corner  		if (bMapTypeCont == 'TRUE'){  		map.removeControl(typecontrols);  		map.addControl(typecontrols);  		}else{  		map.removeControl(typecontrols);  		}  		  		//Add Scale controls  		if (bMapScale == 'TRUE'){  		map.removeControl(scale);  		map.addControl(scale);  		}else{  		map.removeControl(scale);  		}  		      //Add Navigation controls - buttons in the upper left corner		  		map.removeControl(smallcontrols);  		map.removeControl(largecontrols);  		map.removeControl(zoomcontrols);  		if (bMapControl == 's') {  		map.addControl(smallcontrols);  		}else if (bMapControl == 'l') {  		map.addControl(largecontrols);		  		}else if (bMapControl == 'z') {  		map.addControl(zoomcontrols);  		}						map.centerAndZoom(new GPoint(bMapLon, bMapLat), bMapZoom);			 }
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2bd804d35103a165f24886af9e68e7382e60fcef/formsubmit.js/buggy/templates/formsubmit.js