rem: switch (field) { case "f_alt"    : img.alt	 = value; break; case "f_border" : img.border = parseInt(value || "0"); break; case "f_align"  : img.align	 = value; break; case "f_vert"   : img.vspace = parseInt(value || "0"); break; case "f_horiz"  : img.hspace = parseInt(value || "0"); break; 
add: if(img){ switch (field) { case "f_alt"    : img.alt	 = value; break; case "f_border" : img.border = parseInt(value || "0"); break; case "f_align"  : img.align	 = value; break; case "f_vert"   : img.vspace = parseInt(value || "0"); break; case "f_horiz"  : img.hspace = parseInt(value || "0"); break; } 
context: 	this._popupDialog("insert_image.html", function(param) {		if (!param) {	// user must have pressed Cancel			return false;		}		var img = image;		if (!img) {			var sel = editor._getSelection();			var range = editor._createRange(sel);			editor._doc.execCommand("insertimage", false, param.f_url);			if (HTMLArea.is_ie) {				img = range.parentElement();				// wonder if this works...				if (img.tagName.toLowerCase() != "img") {					img = img.previousSibling;				}			} else {				img = range.startContainer.previousSibling;			}		} else {			img.src = param.f_url;		}		for (var field in param) {			var value = param[field];			switch (field) {			    case "f_alt"    : img.alt	 = value; break;			    case "f_border" : img.border = parseInt(value || "0"); break;			    case "f_align"  : img.align	 = value; break;			    case "f_vert"   : img.vspace = parseInt(value || "0"); break;			    case "f_horiz"  : img.hspace = parseInt(value || "0"); break;			}		}	}, outparam);
meta: 7499	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7499/e21bb491bc169de416b9a81ec5c7b9c12198a473/htmlarea.js/buggy/resources/htmlarea/htmlarea.js