rem: linkPKids[p].href = "javascript:storePolygonStyle('edit_polygonstyle.php', document.polygonstyleform_"+editPolygonStyleId+");" ; 
add: linkPKids[p].href = "javascript:storePolygonStyle(document.polygonstyleform_"+editPolygonStyleId+");" ; 
context: function editPolygonStyles(){		show('editpolygonstylesmenu');		show('editpolygonstyleform');		show('editpolygonstylescancel');  	//if polygonstyles data exists  	if ( typeof( bPStyData ) ) {      	// We assume editPolygonStyles has been called before and remove     	// any previously existing sets from the UI    	for (var a=0; a<bPStyData.length; a++) {    		if ( bPStyData[a]!= null ){      			var getElem = "editpolygonstyletable_" + bPStyData[a].style_id;        		if ( $(getElem) ) {            		var extraPolygonStyleForm = $(getElem);        			$('editpolygonstyleform').removeChild(extraPolygonStyleForm);        		}  			}    	}      	var editPolygonStyleId;      	// for each markerstyle data set clone the form    	for (var b=0; b<bPStyData.length; b++) {        	if ( bPStyData[b]!= null ){  						            		editPolygonStyleId = bPStyData[b].style_id;        		// clone the form container      			var newPolygonStyle = $('editpolygonstyletable_n').cloneNode(true);        		// give a new id to the new form container        		newPolygonStyle.id = "editpolygonstyletable_"+editPolygonStyleId;          			// update the new form ids        		newPolygonStyleForm = newPolygonStyle.childNodes;                for ( var n = 0; n < newPolygonStyleForm.length; n++ ) {            		if ( newPolygonStyleForm[n].id == "polygonstyleform_n" ) {                  		newPolygonStyleForm[n].id = "polygonstyleform_" + editPolygonStyleId;                  		newPolygonStyleForm[n].name = "polygonstyleform_" + editPolygonStyleId;          				var nPSFKids = newPolygonStyleForm[n].childNodes;          				for (var o=0; o<nPSFKids.length; o++){          					if (nPSFKids[o].id == "polygonstyleformdata_n"){          						nPSFKids[o].id = "polygonstyleformdata_" + editPolygonStyleId;          					}          				}          			}          		}                	// add form to style table        		$('editpolygonstyleform').appendChild(newPolygonStyle);        		show( 'editpolygonstyletable_'+editPolygonStyleId );        		show( 'polygonstyleform_'+editPolygonStyleId );          			// populate set form values      			form = $('polygonstyleform_' + editPolygonStyleId );                    form.style_array_n.value = b;                form.style_id.value = bPStyData[b].style_id;                form.name.value = bPStyData[b].name;                form.color.value = bPStyData[b].color;                form.weight.value = bPStyData[b].weight;                form.opacity.value = bPStyData[b].opacity;       			// just for a pretty button - js sucks it!      			var linkParent = $('polygonstyleformdata_'+editPolygonStyleId);      			var linkPKids = linkParent.childNodes;      			for (var p=0; p<linkPKids.length; p++){      				if (linkPKids[p].name == "save_polygonstyle_btn"){        				linkPKids[p].href = "javascript:storePolygonStyle('edit_polygonstyle.php', document.polygonstyleform_"+editPolygonStyleId+");" ;      				}    			}      		}  		}  	}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/65f13894fef8f555f38991a7e19d8297767290cc/js_edit_methods.js/clean/templates/js_edit_methods.js