rem: editMarkerStyleId = bMStyleData [b].style_id; 
add: editMarkerStyleId = bMStyleData[b].style_id; 
context: function editMarkerStyles(){		show('editmarkerstylesmenu');		show('editmarkerstyleform');		show('editmarkerstylescancel');	//if markerstyles data exists	if ( typeof( bMStyleData ) ) {  	// We assume editMarkerStyles has been called before and remove   	// any previously existing sets from the UI  	for (var a=0; a<bMStyleData.length; a++) {  		if ( bMStyleData[a]!= null ){    		var getElem = "editmarkerstyletable_" + bMStyleData[a].style_id;    		if ( $(getElem) ) {        	var extraMarkerStyleForm = $(getElem);    			$('editmarkerstyleform').removeChild(extraMarkerStyleForm);    		}			}  	}  	var editMarkerStyleId;  	// for each markerstyle data set clone the form  	for (var b=0; b<bMStyleData.length; b++) {    	if ( bMStyleData[b]!= null ){  						    		editMarkerStyleId = bMStyleData [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;					       							 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);    		show( 'editmarkerstyletable_'+editMarkerStyleId );    		show( 'markerstyleform_'+editMarkerStyleId );  			// populate set form values  			form = $('markerstyleform_' + editMarkerStyleId );            form.style_id.value = bMStyleData[b].style_id;            form.style_array_n.value = b;            form.name.value = bMStyleData[b].name;            for (var r=0; r < 3; r++) {               if (form.type.options[r].value == bMStyleData[b].type){               		form.type.options[r].selected=true;               }            };            form.label_hover_opacity.value = bMStyleData[b].label_hover_opacity;            form.label_opacity.value = bMStyleData[b].label_opacity;            form.label_hover_styles.value = bMStyleData[b].label_hover_styles;            form.window_styles.value = bMStyleData[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+");" ;  						}				}  		}		}	}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/7a10fad618cf5064069d13a7a277c1947e8b0484/formsubmit.js/buggy/templates/formsubmit.js