add:   if ( typeof( bMIconData ) ) {    for (var a=0; a<bMIconData.length; a++) { if ( bMIconData[a]!= null ){ var getElem = "editiconstyletable_" + bMIconData[a].style_id; if ( $(getElem) ) { var extraIconStyleForm = $(getElem); $('editiconstyleform').removeChild(extraIconStyleForm); } } }  var editIconStyleId;   for (var b=0; b<bMIconData.length; b++) { if ( bMIconData[b]!= null ){  editIconStyleId = bMIconData[b].style_id;   var newIconStyle = $('editiconstyletable_n').cloneNode(true);  newIconStyle.id = "editiconstyletable_"+editIconStyleId;   newIconStyleForm = newIconStyle.childNodes; for ( var n = 0; n < newIconStyleForm.length; n++ ) { if ( newIconStyleForm[n].id == "iconstyleform_n" ) { newIconStyleForm[n].id = "iconstyleform_" + editIconStyleId; newIconStyleForm[n].name = "iconstyleform_" + editIconStyleId; var nLSFKids = newIconStyleForm[n].childNodes; for (var o=0; o<nLSFKids.length; o++){ if (nLSFKids[o].id == "iconstyleformdata_n"){ nLSFKids[o].id = "iconstyleformdata_" + editIconStyleId; } } } }   $('editiconstyleform').appendChild(newIconStyle); show( 'editiconstyletable_'+editIconStyleId ); show( 'iconstyleform_'+editIconStyleId );   form = $('iconstyleform_' + editIconStyleId );  form.style_array_n.value = b; form.icon_id.value = bMIconData[b].icon_id; form.name.value = bMIconData[b].name; for (var r=0; r < 2; r++) { if (form.type.options[r].value == bMIconData[b].type){ form.type.options[r].selected=true; } }; form.image.value = bMIconData[b].image; form.rollover_image.value = bMIconData[b].rollover_image; form.icon_w.value = bMIconData[b].icon_w; form.icon_h.value = bMIconData[b].icon_h;  /* not sure want to both supporting these, * probably more complex than people want to be bothered with * they are NOT in the edit_form.tpl ---------------------------------------------------------- form.print_image.value = bMIconData[b].print_image; form.moz_print_image.value = bMIconData[b].moz_print_image; form.transparent.value = bMIconData[b].transparent; form.print_shadow.value = bMIconData[b].print_shadow; form.image_map.value = bMIconData[b].image_map; */  form.shadow_image.value = bMIconData[b].shadow_image; form.shadow_w.value = bMIconData[b].shadow_w; form.shadow_h.value = bMIconData[b].shadow_h; form.icon_anchor_x.value = bMIconData[b].icon_anchor_x; form.icon_anchor_y.value = bMIconData[b].icon_anchor_y; form.infowindow_anchor_x.value = bMIconData[b].infowindow_anchor_x; form.infowindow_anchor_y.value = bMIconData[b].infowindow_anchor_y;   var linkParent = $('iconstyleformdata_'+editIconStyleId); var linkPKids = linkParent.childNodes; for (var p=0; p<linkPKids.length; p++){ if (linkPKids[p].name == "save_iconstyle_btn"){ linkPKids[p].href = "javascript:storeIconStyle('edit_iconstyle.php', document.iconstyleform_"+editIconStyleId+");" ; } } } } } 
context: function editIconStyles(){		show('editiconstylesmenu');		show('editiconstyleform');		show('editiconstylescancel');}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/aca34e8565e064ab0a6ba1a15e477d404523b504/js_edit_methods.js/clean/templates/js_edit_methods.js