rem: var mapdiv = document.getElementById('map'); 
add: var mapdiv = $('map'); 
context: 	 function updateMap(rslt){      var xml = rslt.responseXML;	 		//shorten var names			var t = xml.documentElement.getElementsByTagName('title');			var title = t[0].firstChild.nodeValue;			bMapTitle = title;						var d = xml.documentElement.getElementsByTagName('desc');			var desc = d[0].firstChild.nodeValue;			bMapDesc = desc;						var w = xml.documentElement.getElementsByTagName('w');			var width = w[0].firstChild.nodeValue;			bMapWidth = width;						var h = xml.documentElement.getElementsByTagName('h');			var height = h[0].firstChild.nodeValue;			bMapHeight = height;						var lt = xml.documentElement.getElementsByTagName('lat');			var lat = parseFloat(lt[0].firstChild.nodeValue);			bMapLat = lat;						var ln = xml.documentElement.getElementsByTagName('lon');			var lon = parseFloat(ln[0].firstChild.nodeValue);			bMapLon = lon;						var z = xml.documentElement.getElementsByTagName('z');			var zoom = parseInt(z[0].firstChild.nodeValue);			bMapZoom = zoom;						var ss = xml.documentElement.getElementsByTagName('scale');			var show_scale = ss[0].firstChild.nodeValue;			bMapScale = show_scale;						var sc = xml.documentElement.getElementsByTagName('cont');			var show_cont = sc[0].firstChild.nodeValue;			bMapControl = show_cont;						var sm = xml.documentElement.getElementsByTagName('typecon');			var show_typecont = sm[0].firstChild.nodeValue;			bMapTypeCont = show_typecont;						var mt = xml.documentElement.getElementsByTagName('maptype');			var maptype = bMapTypes[mt[0].firstChild.nodeValue];			bMapType = maptype;						//replace everything	      var maptile = document.getElementById('mymaptitle');      if (maptile){maptile.innerHTML=bMapTitle;}      var mapdesc = document.getElementById('mymapdesc');      if (mapdesc){mapdesc.innerHTML=bMapDesc;}      var mapdiv = document.getElementById('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/6cdc1461898e9e5242e02a6228a7466af2fd254f/formsubmit.js/clean/templates/formsubmit.js