rem: var mapTypeRoot = document.getElementById('map_type'); 
add: var mapTypeRoot = $('map_type'); 
context: function editMap(){				 	show('editmapform');    			document.getElementById('gmap_id').value = bMapID;    			document.getElementById('map_title').value = bMapTitle;    			document.getElementById('map_desc').value = bMapDesc;    			document.getElementById('map_w').value = bMapWidth;    			document.getElementById('map_h').value = bMapHeight;    			document.getElementById('map_lat').value = bMapLat;    			document.getElementById('map_lon').value = bMapLon;    			document.getElementById('map_z').value = bMapZoom;        	for (var i=0; i < 4; i++) {             if (document.getElementById('map_showcont').options[i].value == bMapControl){                document.getElementById('map_showcont').options[i].selected=true;             }          }        	for (var i=0; i < 2; i++) {             if (document.getElementById('map_showscale').options[i].value == bMapScale){                document.getElementById('map_showscale').options[i].selected=true;             }          }					        	for (var i=0; i < 2; i++) {             if (document.getElementById('map_showtypecont').options[i].value == bMapTypeCont){                document.getElementById('map_showtypecont').options[i].selected=true;             }          }					    			var mapTypeRoot = document.getElementById('map_type');					var mapTypeCount = 2;										if (typeof(bMapTypesData) != 'undefined'){						mapTypeCount += bMapTypesData.length;											var newMapType = mapTypeRoot.options[0].cloneNode(false);  					for (i=0; i<bMapTypesData.length; i++){     					  mapTypeRoot.appendChild(newMapType);      					mapTypeRoot.options[i+3].value = bMapTypesData[i].map_typename;      					mapTypeRoot.options[i+3].text = bMapTypesData[i].map_typename;  					}					}						          for (var i=0; i<mapTypeCount; i++) {             if (document.getElementById('map_type').options[i].value == bMapType){                document.getElementById('map_type').options[i].selected=true;             }          }									    			/*@todo create value for comments					  document.getElementById('map_comm').value = ?; for type="checkbox					 */};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/6cdc1461898e9e5242e02a6228a7466af2fd254f/formsubmit.js/clean/templates/formsubmit.js