add:  if (m.type == 0) { defineGIcon(editObjectN); }else if(m.type == 1){ defineXIcon(editObjectN); }  
context: 	 function addIconStyle(rslt){      var xml = rslt.responseXML;			// create a spot for a new iconstyle in the data array			var n = bMIconData.length;			bMIconData[n] = new Array();			var m = bMIconData[n];			// assign iconstyle values to data array						var id = xml.documentElement.getElementsByTagName('icon_id');  		m.icon_id = parseInt( id[0].firstChild.nodeValue );			var nm = xml.documentElement.getElementsByTagName('name');  		m.name = nm[0].firstChild.nodeValue;			var tp = xml.documentElement.getElementsByTagName('type');  		m.type = parseInt( tp[0].firstChild.nodeValue );			var ig = xml.documentElement.getElementsByTagName('image');  		m.image = ig[0].firstChild.nodeValue;			var rig = xml.documentElement.getElementsByTagName('rollover_image');  		m.rollover_image = rig[0].firstChild.nodeValue;			var icw = xml.documentElement.getElementsByTagName('icon_w');  		m.icon_w = parseInt( icw[0].firstChild.nodeValue );			var ich = xml.documentElement.getElementsByTagName('icon_h');  		m.icon_h = parseInt( ich[0].firstChild.nodeValue );			var is = xml.documentElement.getElementsByTagName('shadow_image');			  		m.shadow_image = is[0].firstChild.nodeValue;			var isw = xml.documentElement.getElementsByTagName('shadow_w');  		m.shadow_w = parseInt( isw[0].firstChild.nodeValue );			var ish = xml.documentElement.getElementsByTagName('shadow_h');  		m.shadow_h = parseInt( ish[0].firstChild.nodeValue );			var iax = xml.documentElement.getElementsByTagName('icon_anchor_x');			  		m.icon_anchor_x = parseInt( iax[0].firstChild.nodeValue );			var iay = xml.documentElement.getElementsByTagName('icon_anchor_y');			  		m.icon_anchor_y = parseInt( iay[0].firstChild.nodeValue );			var sax = xml.documentElement.getElementsByTagName('shadow_anchor_x');			  		m.shadow_anchor_x = parseInt( sax[0].firstChild.nodeValue );			var say = xml.documentElement.getElementsByTagName('shadow_anchor_y');			  		m.shadow_anchor_y = parseInt( say[0].firstChild.nodeValue );			var wax = xml.documentElement.getElementsByTagName('infowindow_anchor_x');			  		m.infowindow_anchor_x = parseInt( wax[0].firstChild.nodeValue );			var way = xml.documentElement.getElementsByTagName('infowindow_anchor_y');			  		m.infowindow_anchor_y = parseInt( way[0].firstChild.nodeValue );			// clear the form			$('iconstyleform_new').reset();			// update the styles menus			editIconStyles();	 }
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/3e0bbee8d36ec1b8f46728f612263f404d41ffa5/js_edit_methods.js/clean/templates/js_edit_methods.js