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 : 620 ; fileURL = ThisDBurl + "/a/" + unid + "/$file/" + fileName; var url = pcDBurl + "/pcardcreate?openform&fileURL=" + fileURL + "&sub=" + subject; openPopupAll( url , width, height,"eCardWin" ) ; } function showEcard( fileURL, width, height, winName ) { var width = (width)? (width + 20) : 560 ; var height = (height)? (height + 40) : 560 ; var url = ThisDBurl + "/showgraf?openform&fileURL=" + fileURL; var winname = (winName)? winName : 'EcardWin' ; var OptionString ='left=20,top=20,location=no,menubar=no,scrollbars=no,resizable=yes,' + 'width=' + width + ',height=' + height ; dlgwin = window.open(url, winName , OptionString ) ; window.setTimeout("dlgwin.focus()", 50); } /********************************* 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; i0)) 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); }