*/ 
function insertAction() {	var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));	var elm = inst.getFocusElement();	elm = tinyMCE.getParentElement(elm, "a");	tinyMCEPopup.execCommand("mceBeginUndoLevel");	// Create new anchor elements	if (elm == null) {		if (tinyMCE.isSafari)			tinyMCEPopup.execCommand("mceInsertContent", false, '<a href="#mce_temp_url#">' + inst.selection.getSelectedHTML() + '</a>');		else			tinyMCEPopup.execCommand("createlink", false, "#mce_temp_url#");		var elementArray = tinyMCE.getElementsByAttributeValue(inst.getBody(), "a", "href", "#mce_temp_url#");		for (var i=0; i<elementArray.length; i++) {			var elm = elementArray[i];			// Move cursor behind the new anchor			if (tinyMCE.isGecko) {				var sp = inst.getDoc().createTextNode(" ");				if (elm.nextSibling)					elm.parentNode.insertBefore(sp, elm.nextSibling);				else					elm.parentNode.appendChild(sp);				// Set range after link				var rng = inst.getDoc().createRange();				rng.setStartAfter(elm);				rng.setEndAfter(elm);				// Update selection				var sel = inst.getSel();				sel.removeAllRanges();				sel.addRange(rng);			}			setAllAttribs(elm);		}	} else		setAllAttribs(elm);	tinyMCE._setEventsEnabled(inst.getBody(), false);	tinyMCEPopup.execCommand("mceEndUndoLevel");	tinyMCEPopup.close();}
3623	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3623/32d3515ec5cf941c718954b41f19cc777ee4a50e/functions.js/buggy/ain7-website/ain7/media/js/tiny_mce/plugins/advlink/jscripts/functions.js