function clearSearch() { if (document.forms["actionbar"].Query.value == document.forms["actionbar"].Query.defaultValue) document.forms["actionbar"].Query.value = ""; } function DoGEASearch() { //alert("søgning"); if ( !document.forms["actionbar"].Query.value.length == 0) { SearchStr = escape( document.forms["actionbar"].Query.value ); //alert(SearchStr); //explorer_open('http://search.gea-explorer.com/?lang=&s=0&t=&w=1&q=' + SearchStr + '&tpl='); document.location.href="/gpuk/cmsdoc.nsf/Search/SearchwebFormResult?readform&query=" + SearchStr; } } function showjob(ref){ var unid = document.all.jobslist.options[document.all.jobslist.selectedIndex].value; if(document.getElementById("DocType")==null){ if(document.getElementById("FromRoot").value=="0"){ path = ".."; }else{ path = document.getElementById("Path").value; } window.location.href = path + '/webdoc/' + unid; }else{ //alert("opens jobdocument"); } } function doChange(field,ref){ val = document.getElementById(field)[ref.selectedIndex].value; location.href = val; //return ; } function doChangePage(field,ref){ val = document.getElementById(field)[ref.selectedIndex].value; val2 = val.replace('../WebDoc',''); if(document.getElementById("FromRoot").value=="1"){ location.href="/" + document.getElementById("webdbpath").value + "/webdoc" + val2; }else{ location.href= "../webdoc" + val2; } }