rem: form.name.value = this.Map.MarkerStyles[b].name; 
add: form.name.value = this.Map.markerstyles[b].name; 
context: BitMap.Edit.prototype.editMarkerStyles = function(){		BitMap.show('editmarkerstylesmenu');		BitMap.show('editmarkerstyleform');		BitMap.show('editmarkerstylescancel');		//if markerstyles data exists		if ( typeof( this.Map.MarkerStyles ) ) {  	// We assume editMarkerStyles has been called before and remove   	// any previously existing sets from the UI  	for (var a=0; a<this.Map.MarkerStyles.length; a++) {  		if ( this.Map.MarkerStyles[a]!= null ){    		var getElem = "editmarkerstyletable_" + this.Map.MarkerStyles[a].style_id;    		if ( $(getElem) ) {        	var extraMarkerStyleForm = $(getElem);    			$('editmarkerstyleform').removeChild(extraMarkerStyleForm);    		}			}  	}  	var editMarkerStyleId;		var x = 0;  	// for each markerstyle data set clone the form  	for (var b=0; b<this.Map.MarkerStyles.length; b++) {    	if ( this.Map.MarkerStyles[b]!= null ){  										x++    		editMarkerStyleId = this.Map.MarkerStyles[b].style_id;    		// clone the form container  			var newMarkerStyle = $('editmarkerstyletable_n').cloneNode(true);    		// give a new id to the new form container    		newMarkerStyle.id = "editmarkerstyletable_"+editMarkerStyleId;  			// update the new form ids    		newMarkerStyleForm = newMarkerStyle.childNodes;            for ( var n = 0; n < newMarkerStyleForm.length; n++ ) {					if ( newMarkerStyleForm[n].id == "markerstyleform_n" ) {											newMarkerStyleForm[n].id = "markerstyleform_" + editMarkerStyleId;              		newMarkerStyleForm[n].name = "markerstyleform_" + editMarkerStyleId;					             		if (x % 2){            			addElementClass( newMarkerStyleForm[n], 'even');            		}else{            			addElementClass( newMarkerStyleForm[n], 'odd');            		}      				var nMSFKids = newMarkerStyleForm[n].childNodes;      				for (var o=0; o<nMSFKids.length; o++){      					if (nMSFKids[o].id == "markerstyleformdata_n"){      						nMSFKids[o].id = "markerstyleformdata_" + editMarkerStyleId;      					}      				}      			}      		}        	// add form to style table    		$('editmarkerstyleform').appendChild(newMarkerStyle);    		BitMap.show( 'editmarkerstyletable_'+editMarkerStyleId );    		BitMap.show( 'markerstyleform_'+editMarkerStyleId );  			// populate set form values  			form = $('markerstyleform_' + editMarkerStyleId );            form.style_id.value = this.Map.MarkerStyles[b].style_id;            form.style_array_n.value = b;            form.name.value = this.Map.MarkerStyles[b].name;            for (var r=0; r < 3; r++) {               if (form.marker_style_type.options[r].value == this.Map.MarkerStyles[b].marker_style_type){               		form.marker_style_type.options[r].selected=true;               }            };            form.label_hover_opacity.value = this.Map.MarkerStyles[b].label_hover_opacity;            form.label_opacity.value = this.Map.MarkerStyles[b].label_opacity;            form.label_hover_styles.value = this.Map.MarkerStyles[b].label_hover_styles;            form.window_styles.value = this.Map.MarkerStyles[b].window_styles;  			// just for a pretty button - js sucks it!	/*  			var linkParent = $('markerstyleformdata_'+editMarkerStyleId);  			var linkPKids = linkParent.childNodes;  			for (var p=0; p<linkPKids.length; p++){  						if (linkPKids[p].name == "save_markerstyle_btn"){  							 linkPKids[p].href = "javascript:storeMarkerStyle('edit_markerstyle.php', document.markerstyleform_"+editMarkerStyleId+");" ;  						}				}	*/           	var mytable = $('markerstyleformdata_'+editMarkerStyleId);           	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.EditSession.storeMarkerStyle(document.markerstyleform_"+editMarkerStyleId+");";  		}		}	}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js