var isdocbeingsaved = false; var is = new BrowserCheck(); // BrowserInfo geholt var ThisDBurl = GetThisDBurl(); var ThisDBdir = GetThisDBdir(); var ThisDBurlRel = GetThisDBurlRel(); var helpDBurl = "/sem-net1/hlp.nsf"; var newsDBurl = "/sem-net1/ns.nsf"; var pcDBurl = "/sem-net1/pc.nsf"; var homeDBurl = ThisDBdir + "home.nsf" /********************************* Weiterleitung ****************************************************/ function LoadInRedirWin( key, width, height ) { if ( key == "") {return;} var width = (width)? width : 740 ; var height = (height)? height : 560 ; var url = homeDBurl + "/s/" + key ; openPopupAll( url , width, height, "RedirWin" ) ; } /********************************* ECARD****************************************************/ function sendEcard( unid, fileName, subject,width,height ) { var width = (width)? width : 800 ; var height = (height)? height : 600 ; fileURL = ThisDBurl + "/a/" + unid + "/$file/" + fileName; var url = pcDBurl + "/pcardcreate?openform&fileURL=" + fileURL + "&sub=" + subject; openPopupAll( url , width, height,"eCardWin" ) ; } /********************************* Newsletter****************************************************/ /*************** im Popup *****************************************/ function openNLOrder(width,height) { var width = (width)? width : 460 ; var height = (height)? height : 600 ; if ( newsDBurl == "" ) { return; } var url = newsDBurl + "/nlorder?openform"; //openPopupAll( url , width, height, "NLWin" ) ; openPopup( url , width, height, "NLWin" ) ; } /*************** grosse Maske *****************************************/ function OpenNLOrderInt() { if ( newsDBurl == "" ) { return; } var url = newsDBurl + "/nlorderInt?openform" ; window.location.href= url; } /******************************************************************************************/ function Search(){ str=document.SearchForm.SearchString.value; // str = replacestring(str,' AND ',' ',false) ; str = replacestring(str,' OR ',' ',false) ; if (str=='' || str == ' ' ){ alert('Bitte geben Sie einen Suchbegriff ein.') ; return ; } ; // str = replacestring(str,' ',' AND ',false) ; // str = replacestring(str,' ',' OR ',false) ; var SearchQueryURL = ThisDBurl + "/" + "sva?SearchView&Query=" + str + "&SearchMax=0&Count=10&Start=1" ; document.location.href=SearchQueryURL ; } function LoadInHelpWindow( key ) { if ( key == "") {key = "intro";} var url = helpDBurl + "/RefHelp/" + key + "?OpenDocument&PURL=" + ThisDBurlRel ; helpwin = window.open(url, 'HelpWindow' , 'scrollbars=yes,resizable=yes,width=650,height=500'); window.setTimeout("helpwin.focus()", 50); } /******************************************************************************************/ // Einbabefelder auslesen - ANFANG function ReadRadio(radio) { var ReturnValue = ""; for (var i=0; i 0 ) { res = "http://" + res.substring(x+1,200) } } return res } function GetThisDBdir() { str = window.location.pathname ; xstr = str.toLowerCase(); x = xstr.indexOf( ".nsf" ) if (x < 0 ) { res = "/" } else { res=str.substring(0,x) ; // alles links von .nsf x = res.lastIndexOf( "/" ) ; res=res.substring(0,x+1) ; // alles incl. letztem slash } return res } function GetThisDBurlRel() { var x = 0 ; var y = 0 ; str = window.location.pathname ; xstr = str.toLowerCase(); x = xstr.indexOf( ".nsf" ) if (x < 0 ) { res = "/" } else { res=str.substring(0,x+4) ; // alles incl .nsf y = res.indexOf( "/" ) ; res=res.substring(y,200) ; // alles incl. letztem slash } return res } function GetDBdir(str) { xstr = str.toLowerCase(); x = xstr.indexOf( ".nsf" ) if (x < 0 ) { res = "/" } else { res=str.substring(0,x) ; // alles links von .nsf x = res.lastIndexOf( "/" ) ; res=res.substring(0,x+1) ; // alles incl. letztem slash } return res } // COOKIES ######################################## ANFANG function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "; path=" + ThisDBdir ) + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(Name) { var search = Name + "="; var RetStr = null; var offset = 0; var end = 0; offset = (document.cookie.indexOf(search)); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) { end = document.cookie.length; } RetStr = unescape(document.cookie.substring(offset, end)); } if (RetStr == null) RetStr = ""; return (RetStr); } // COOKIES ######################################## ENDE function BrowserCheck() { var b=navigator.appName; if (b.indexOf('Netscape')!=-1) this.b="ns"; else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera"; else if (b=="Microsoft Internet Explorer") this.b="ie"; this.version=navigator.appVersion; this.v=parseInt(this.version); this.ns=(this.b=="ns" && this.v>=4); this.ns4=(this.b=="ns" && this.v==4); this.ns6=(this.b=="ns" && this.v==5); this.ie=(this.b=="ie" && this.v>=4); this.ie4=(this.version.indexOf('MSIE 4')>0); this.ie5=(this.version.indexOf('MSIE 5')>0); this.ie55=(this.version.indexOf('MSIE 5.5')>0); this.ie6=(this.version.indexOf('MSIE 6.0')>0); this.opera=(this.b=="opera"); this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false; this.def=(this.ie||this.dom); // most used browsers, for faster if loops var ua=navigator.userAgent.toLowerCase(); if (ua.indexOf("win")>-1) this.platform="win32"; else if (ua.indexOf("mac")>-1) this.platform="mac"; else this.platform="other"; //alert(this.version); this.win = (this.platform== 'win32' ); this.mac = (this.platform== 'mac'); } /******************************HELPER***********************************/ function strLeft(inpStr, divider ) { var inp = inpStr; i = inp.indexOf( divider ) if (i < 0 ) { // Divider nicht gefunden return inpStr ; } else { // Divider gefunden return inp.substring(0,i); // von Anfang bis Divider } } function strLeftBack(inpStr, divider ) { var inp = inpStr; i = inp.lastIndexOf( divider ) if (i < 0 ) { // Divider nicht gefunden return inpStr ; } else { // Divider gefunden return inp.substring(0,i); // von Anfang bis Divider } } function strRight(inpStr, divider ) { var inp = inpStr; i = inp.indexOf( divider ) if (i < 0 ) { // Divider nicht gefunden return inpStr ; } else { // Divider gefunden return inp.substring(i+divider.length); // von Divider bis Ende } } function strRightBack(inpStr, divider ) { var inp = inpStr; i = inp.lastIndexOf( divider ) if (i < 0 ) { // Divider nicht gefunden return inpStr ; } else { // Divider gefunden return inp.substring(i+1); // von Divider bis Ende } } function right(inpStr, pos ) { var inp = inpStr; if (pos >= inp.length ) { return inpStr ; } else { startpos = inp.length - pos ; return inp.substring(startpos ); // von Divider bis Ende } } function left(inpStr, pos ) { var inp = inpStr; if (pos >= inp.length ) { return inpStr ; } else { return inp.substring(0,pos); // von Anfang bis Divider } } function replacestring(str_normal,str_find,str_replace,int_case_insensitive) { if (arguments.length<3 || str_find=="" || str_normal=="" || typeof("".split)!="function") return(str_normal); //no parm means default, "case SENSITIVE"... if(!(int_case_insensitive)) return(str_normal.split(str_find)).join(str_replace); str_find=str_find.toLowerCase(); var rv=""; var ix=str_normal.toLowerCase().indexOf(str_find); while(ix>-1) { rv+=str_normal.substring(0,ix)+str_replace; str_normal=str_normal.substring(ix+str_find.length); ix=str_normal.toLowerCase().indexOf(str_find); }; return(rv+str_normal); } //end function replacestring function copyField(theField) { var tempval=eval("document.forms[0]."+theField) tempval.focus() tempval.select() therange=tempval.createTextRange() therange.execCommand("Copy") window.status="Contents highlighted and copied to clipboard!" setTimeout("window.status=''",2400); }