var url=tinyMCE.getParam("external_link_list_url");if(url!=null){if(url.charAt(0)!="/"&&url.indexOf("://")==-1){url=tinyMCE.documentBasePath+"/"+url;}document.write("<sc"+"ript language=\"javascript\" type=\"text/javascript\" src=\""+url+"\"></sc"+"ript>");}function init(){tinyMCEPopup.resizeToInnerSize();document.getElementById("hrefbrowsercontainer").innerHTML=getBrowserHTML("hrefbrowser","href","file","theme_advanced_link");if(isVisible("hrefbrowser")){document.getElementById("href").style.width="180px";}var _1=document.forms[0];for(var i=0;i<document.forms[0].target.options.length;i++){var _3=document.forms[0].target.options[i];if(_3.value==tinyMCE.getWindowArg("target")){_3.selected=true;}}document.forms[0].href.value=tinyMCE.getWindowArg("href");document.forms[0].linktitle.value=tinyMCE.getWindowArg("title");document.forms[0].insert.value=tinyMCE.getLang("lang_"+tinyMCE.getWindowArg("action"),"Insert",true);addClassesToList("styleSelect","theme_advanced_link_styles");selectByValue(_1,"styleSelect",tinyMCE.getWindowArg("className"),true);if(_1.styleSelect&&_1.styleSelect.options.length<=1){var sr=document.getElementById("styleSelectRow");sr.style.display="none";sr.parentNode.removeChild(sr);}if(typeof(tinyMCELinkList)!="undefined"&&tinyMCELinkList.length>0){var _1=document.forms[0];for(var i=0;i<_1.link_list.length;i++){if(_1.link_list.options[i].value==tinyMCE.getWindowArg("href")){_1.link_list.options[i].selected=true;}}}}function checkPrefix(n){if(Validator.isEmail(n)&&!/^\s*mailto:/i.test(n.value)&&confirm(tinyMCE.getLang("lang_is_email"))){n.value="mailto:"+n.value;}if(/^\s*www./i.test(n.value)&&confirm(tinyMCE.getLang("lang_is_external"))){n.value="http://"+n.value;}}function insertLink(){var _6=document.forms[0].href.value;var _7=document.forms[0].target.options[document.forms[0].target.selectedIndex].value;var _8=document.forms[0].linktitle.value;var _9=document.forms[0].styleSelect?document.forms[0].styleSelect.value:"";var _a;if(_7=="_self"){_7="";}tinyMCEPopup.restoreSelection();tinyMCE.themes["advanced"]._insertLink(_6,_7,_8,_a,_9);tinyMCEPopup.close();}