rem: BitMap.Edit.show( 'editmaptypetable_'+editMapTypeId ); BitMap.Edit.show( 'maptypeform_'+editMapTypeId ); 
add: BitMap.show( 'editmaptypetable_'+editMapTypeId ); BitMap.show( 'maptypeform_'+editMapTypeId ); 
context: BitMap.Edit.editMapTypes = function(Map){	BitMap.Edit.show('editmaptypemenu');	BitMap.Edit.show('editmaptypeform');	BitMap.Edit.show('editmaptypecancel');	//if maptype data exists	if ( typeof( Map.Maptypes ) ) {	  	// We assume editMapTypes has been called before and remove   	// any previously existing sets from the UI  	for (var a=0; a<Map.Maptypes.length; a++) {  		if ( Map.Maptypes[a]!= null ){    		var getElem = "editmaptypetable_" + Map.Maptypes[a].maptype_id;    		if ( $(getElem) ) {        	var extraMapTypeForm = $(getElem);    			$('editmaptypeform').removeChild(extraMapTypeForm);    		}			}  	}		  	var editMapTypeId;  	  	  	// for each maptype data set clone the form  	for (var b=0; b<Map.Maptypes.length; b++) {  	if ( Map.Maptypes[b]!= null ){						  		editMapTypeId = Map.Maptypes[b].maptype_id;  	  		// clone the form container			var newMapType = $('editmaptypetable_n').cloneNode(true);  		// give a new id to the new form container  		newMapType.id = "editmaptypetable_"+editMapTypeId;						// update the new form ids  		newMapTypeForm = newMapType.childNodes;      	for ( var n = 0; n < newMapTypeForm.length; n++ ) {  				if ( newMapTypeForm[n].id == "maptypeform_n" ) {					        			 newMapTypeForm[n].id = "maptypeform_" + editMapTypeId;        			 newMapTypeForm[n].name = "maptypeform_" + editMapTypeId;					 							 var nMFKids = newMapTypeForm[n].childNodes;							 for (var o=0; o<nMFKids.length; o++){							   if (nMFKids[o].id == "maptypeformdata_n"){									 nMFKids[o].id = "maptypeformdata_" + editMapTypeId;								 }							 }					}			}  									      // add form to set table  		$('editmaptypeform').appendChild(newMapType);  		BitMap.Edit.show( 'editmaptypetable_'+editMapTypeId );  		BitMap.Edit.show( 'maptypeform_'+editMapTypeId );									//@todo add cloning of the all maptypes form	  			// populate set form values			form = $('maptypeform_' + editMapTypeId);			form.array_n.value = b;        form.maptype_id.value = Map.Maptypes[b].maptype_id;        form.name.value = Map.Maptypes[b].name;        form.description.value = Map.Maptypes[b].description;        form.copyright.value = Map.Maptypes[b].copyright;        form.maxzoom.value = Map.Maptypes[b].maxzoom;        for (var r=0; r < 3; r++) {           if (form.basetype.options[r].value == Map.Maptypes[b].basetype){           		form.basetype.options[r].selected=true;           }        };			        for (var r=0; r < 3; r++) {           if (form.alttype.options[r].value == Map.Maptypes[b].alttype){           		form.alttype.options[r].selected=true;           }        };        form.maptiles_url.value = Map.Maptypes[b].maptiles_url;        form.lowtiles_url.value = Map.Maptypes[b].lowresmaptiles_url;        form.hybridtiles_url.value = Map.Maptypes[b].hybridtiles_url;        form.lowhybridtiles_url.value = Map.Maptypes[b].lowreshybridtiles_url;			// just for a pretty button - js sucks it!        var mytable = $('maptypeformdata_'+editMapTypeId);        var mytablebody = mytable.getElementsByTagName("tbody").item(0);			var myrow = mytablebody.getElementsByTagName("tr").item(0);        var mycel = myrow.getElementsByTagName("td").item(6);			mycel.getElementsByTagName("a").item(0).href = "javascript:BitMap.Edit.storeMapType(document.maptypeform_"+editMapTypeId+");";			mycel.getElementsByTagName("a").item(1).href = "javascript:alert('feature coming soon');";			mycel.getElementsByTagName("a").item(2).href = "javascript:BitMap.Edit.removeMapType(document.maptypeform_"+editMapTypeId+");";			mycel.getElementsByTagName("a").item(3).href = "javascript:BitMap.Edit.expungeMapType(document.maptypeform_"+editMapTypeId+");";  	}		}	}	};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/f09618d46945d8f2582e732639c51744521f2380/Edit.js/clean/templates/Edit.js