// Script functions for module "SEARCH" function doSearch(formSrc,openNew) { var searchText = formSrc.searchString.value; var searchEngine = formSrc.searchEngine.value; formSrc.action = "http://www.start.se/xml/redirect_search.asp"; var txt = new String(); txt = escape(searchText); txt = txt.replace(/\//g,"%2F"); txt = txt.replace(/\?/g,"%3F"); txt = txt.replace(/=/g,"%3D"); txt = txt.replace(/&/g,"%26"); txt = txt.replace(/@/g,"%40"); txt = txt.replace(/%E4/g,""); txt = txt.replace(/%C4/g,""); txt = txt.replace(/%E5/g,""); txt = txt.replace(/%C5/g,""); txt = txt.replace(/%F6/g,""); txt = txt.replace(/%D6/g,""); var urlStr = ""; if(searchEngine == "sweEng" || searchEngine == "engSwe") { /* if(openNew == 1) formSrc.target = "_blank"; else formSrc.target = "_top"; */ formSrc.action = "http://lexikon.nada.kth.se/cgi-bin/sve-eng"; formSrc.uppslagsord.value = txt; if(searchEngine == "sweEng") formSrc.sprak[0].checked = true; else formSrc.sprak[1].checked = true; } if(txt != "") { formSrc.submit(); } return false; } function pickEngine(formSrc,ddSrc, engineId,engineName) { document.forms[formSrc].searchEngine.value = engineId; ddSource = document.getElementById(ddSrc + "desc"); ddSource.innerHTML = engineName; document.forms[formSrc].searchString.focus(); }