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(){ window.name="Source"; var win=window.open("/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 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 -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;}}