rem: alert(href.replace(/file:(\/\/)/gi, "")); 
context: function init() {    var text = tinyMCE.getWindowArg('text').toString();    var href = tinyMCE.getWindowArg('href').toString();    document.forms[0].wiki_text.value = text;    document.forms[0].web_text.value = text;    document.forms[0].file_text.value = text;    document.forms[0].attach_text.value = text;    document.forms[0].email_text.value = text;    if ((href != null) && (href != "")) {	    if (href.search(/(https?|ftp):\/\/[-a-zA-Z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/gi)>-1) {           mcTabs.displayTab('web_tab','web_panel');           document.forms[0].web_page.value = href;        } else if (href.search(/wikiattachment:-:(.*?)/gi) > -1) {            mcTabs.displayTab('attachments_tab','attachments_panel');            document.forms[0].attach.value = href.replace(/wikiattachment:-:/gi, "").replace(/%20/gi, " ");        } else if (href.search(/mailto:(.*?)/gi) > -1) {            mcTabs.displayTab('email_tab','email_panel')            document.forms[0].email.value = href.replace(/mailto:/gi, "");        } else if (href.search(/file:(\/\/\/\/\/)(.*?)/gi) > -1) {            mcTabs.displayTab('file_tab','file_panel');            document.forms[0].filepath.value = href.replace(/file:(\/\/\/\/\/)/gi, "");        } else if (href.search(/file:(\/\/)(.*?)/gi) > -1) {            mcTabs.displayTab('file_tab','file_panel');            alert(href.replace(/file:(\/\/)/gi, ""));            document.forms[0].filepath.value = href.replace(/file:(\/\/)/gi, "");        } else {            mcTabs.displayTab('wiki_tab','wiki_panel');            var space = "", whref = href;            if (href.indexOf(".") > -1) {                space = href.substring(0, href.indexOf("."));                whref = href.substring(href.indexOf(".") + 1, href.length);            }            document.forms[0].wiki_space.value = space;            document.forms[0].wiki_page.value = whref;        }    }    document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);    var className = tinyMCE.getWindowArg('className');    var editor_id = tinyMCE.getWindowArg('editor_id');}
meta: 6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f7074e4a3c7f8d598e9ff94e444bc246a94b0df1/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js