function openWindow(url,path,parameters){ window.name="Source"; var win=window.open(url,path,parameters); win.focus();} function openNewsXML(path){ window.name="Source"; var win=window.open(path,"News","height=400,width=790,scrollbars"); win.focus();} function openAnmelden(){ window.name="Source"; var win=window.open("/anmelden","Anmeldung","height=600,width=790,scrollbars"); win.focus();} function jump(){ window.name="Source"; var win=window.open("/quickjump","quickjump","height=600,width=330"); win.focus();} function DynamicQuickjump(){ window.name="Source"; var form= document.forms[0]; var p=form.qcount.value; var path="/" + form.StartDBPath.value + "/($Topsite)/Quickjump"; param=100 + 50 * p; var w="height=" + param + ",width=330" var win=window.open(path,"quickjump",w); win.focus();} function openAGB(param){ window.name="Source"; var win= window.open("/" + param + "/$AGBs/AGB","AGB","height=600,width=800,scrollbars"); win.focus();} function openBusiness(){ window.name="Source"; var win=window.open("/business","Business","height=600,width=800,scrollbars"); win.focus();} function openUeberUns(){ window.name="Source"; var win=window.open("/ueberuns","UeberUns","height=600,width=800,scrollbars"); win.focus();} function openPremiumKunden(value) { window.name = "Source"; if (value == "1000") var win= window.open("/premiumkunden","PremiumKunden","height=600,width=800,scrollbars"); else var win= window.open("/"+value+"premiumkunden","PremiumKunden","height=600,width=800,scrollbars"); win.focus();} function openBGBAnzeigen(site){ window.name="Source"; var win=window.open("/"+site+"BGBAnzeigen","BGB","height=600,width=800,scrollbars"); win.focus();} function openBGBPersonal(site){ window.name="Source"; var win=window.open("/"+site+"BGBPersonal","BGB","height=600,width=800,scrollbars"); win.focus();} function openBGBPreis(site){ window.name="Source"; var win=window.open("/"+site+"BGBPreis","BGB","height=600,width=800,scrollbars"); win.focus();} function openBGBAnzeigenpreis(site){ window.name="Source"; var win=window.open("/"+site+"BGBAnzeigenschaltung","BGB","height=600,width=800,scrollbars"); win.focus();} function SendEMailMessage(unid) {var form = document.forms[0]; var lname = "me1"; var z = "/" + form.thisDB.value + "/SendMailToAuthor!OpenForm&unid="+unid; var it = window.open(z,lname,"height=400,width=600"); it.focus();} function SendEMailMessageExpert(unid) {var form = document.forms[0]; var lname = "me1"; var z = "/" + form.thisDB.value + "/SendMailToAuthor!OpenForm&unid="+unid; var it = window.open(z,lname,"height=400,width=600"); it.focus();} function topjump(x){ if(x !="nothing"){ window.name="me"; var lname="me"; var z=x; window.open(z,lname,"copyhistory,directories,resizable,scrollbars,status,menubar,location,toolbar");}} function searchsite(dbcategory, aspid, querystring) { var dbc; var tmp; var len; i = 0; tmp = querystring; len = tmp.length; for (i = 0; i < len; i++) { if (tmp.charAt(i) == " "){ tmp = tmp.substring(0, i) + '%20' + tmp.substring(i+1); len = tmp.length; }} querystring = "(" + tmp + ")"; if (querystring != ""){ dbc = "([DbCategories]%20CONTAINS%20("+dbcategory+"))%20AND%20"; var url = "/catalog.nsf/?SearchDomain&Query="+dbc+querystring+"&SearchFuzzy=TRUE&Start=1&Count=20&SearchEntry=ResultEntry"+"&ASPID="+aspid; top.location.assign(url); } } function searchofferer(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+"&SearchFuzzy=TRUE"; top.location.assign(url);}} function searchjobs(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+"&SearchFuzzy=TRUE"; top.location.assign(url);}} function searchcalendar(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+""; top.location.assign(url);}} function searchpresse(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+""; top.location.assign(url);}} function searchexperten(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+""; top.location.assign(url);}} function searchmodule(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+""; top.location.assign(url);}} function searchcenter(dbpath,querystring){ if(querystring !=""){ var url="/"+dbpath+"/SucheView/!SearchView&Query="+querystring+""; top.location.assign(url);}} function doClickNetscape(evt ){ if(evt.which=="13" ) {searchsite('test',document.forms[0].search.value);} return true;} function doClickExplorer(evt ){ if(evt.keyCode=="13" ){ searchsite('test',document.forms[0].search.value);}} function GoBack(theURL){ var trimString=""; var found="0"; var step=-1; if(theURL.length>=5){ for(i=0;i<=theURL.length-5;i++){ theChar=theURL.substring(i,i+4); if(theChar=="Seq=" && found=="0"){theChar=theURL.substring(i+4,i+5); if(isNaN(theChar)==false){ found="1"; step=-(parseInt(theChar)+1) break;}}}} history.go(step)} function shortlogin(param){ var t=testEMField(); if(t==true){return}; var jetzt=new Date(); var minni=jetzt.getTime(); var form=document.forms[1]; var tmp=document.forms[1].Reg.value; var email=form.Newsletter.value; if(param==1){ var urlpath=String("/" + tmp + "/ShortLogin!OpenAgent&email=" + email + "&" + minni + "&" + param);} else if(param==2){ var did=form.Did.value; var urlpath=String("/" + tmp + "/SLogin!OpenAgent&" + email + "&" + minni + "&" + did + "&" + param);} window.name="Source"; var win=window.open(urlpath,"Newsletter","height=800,width=800,scrollbars"); win.focus();} function googleSearch(domains, sitesearch, q, cof, sa, googlePath) {var url; var path; if (googlePath.length > 0) path = googlePath +"/OpenGoogle?OpenAgent&http://www.google.com/custom@"; else path = "http://www.google.com/custom?"; url = path + "q="+q+"&sa="+sa+"&cof="+escape(cof)+"&domains="+domains+"&sitesearch="+sitesearch; window.open(url,"_blank","location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes,left=0,top=0,scrollbars=yes");} function radioWert(rObj) { for (var i=0; i 5) && (afterAmp.length > 0) && (beforeAmp.length > 1) && (afterDot.length > 1) && (email_regex.test(strEmail)) ) { return true;} else {return false;}} function alertBox(vField,vMessage,vType){ if(vMessage=="null") return; alert(vMessage) if(vType=="text"){ vField.focus(); vField.select();}else{ vField.focus();} return;} function leftBack(s,x){ var retVal="-1"; if(s.indexOf(x) > -1) retVal=s.substring(0,s.indexOf(x) ); return(retVal);} function rightBack(s,x){ var retVal="-1"; if(s.indexOf(x) > -1 ) retVal=s.substring(s.indexOf(x)+ 1,s.length); return(retVal);} function TrimLeft(str ){ var resultStr=""; var i=len=0; if(str+""=="undefined" || str==null) return null; str +=""; if(str.length==0) resultStr=""; else{ len=str.length; while((i <=len) &&(str.charAt(i)==" ")) i++; resultStr=str.substring(i,len);} return resultStr;} function TrimRight(str ){ var resultStr=""; var i=0; if(str+""=="undefined" || str==null) return null; str +=""; if(str.length==0) resultStr=""; else{ i=str.length - 1; while((i >=0) &&(str.charAt(i)==" ")) i--; resultStr=str.substring(0,i + 1);} return resultStr;} function Trim(str ){ var resultStr=""; resultStr=TrimLeft(str); resultStr=TrimRight(resultStr); return resultStr;} function writeCookie(n,w) { var a = new Date(); var e = 1000*60*60*24*365 a = new Date(a.getTime() +e); document.cookie = n+'='+escape(w)+'; expires='+a.toGMTString()+'; path=/';} function readCookie(n) { a = document.cookie; res = ''; while(a != '') { while(a.substr(0,1) == ' '){a = a.substr(1,a.length);} cookiename = a.substring(0,a.indexOf('=')); if(a.indexOf(';') != -1) {cookiewert = a.substring(a.indexOf('=')+1,a.indexOf(';'));} else{cookiewert = a.substr(a.indexOf('=')+1,a.length);} if(n == cookiename){res = cookiewert;} i = a.indexOf(';')+1; if(i == 0){i = a.length} a = a.substring(i,a.length); } return(unescape(res))} function deleteCookie(n) {document.cookie = n+'=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/';} function writeLoginCookie(user) { if (document.getElementsByName("LoginCheck")[0].checked) { writeCookie('username', user); writeCookie('password', document.login.Password.value); } else { deleteCookie('username'); deleteCookie('password');}} function readLoginCookie(form) { form.Username.value = readCookie('username'); if (form.Username.value != "") { form.Password.value = readCookie('password'); form.LoginCheck.checked = true;}}