var is = new BrowserCheck(); // BrowserInfo geholt var ThisDBurl = GetThisDBurl(); var ThisDBdir = GetThisDBdir(); // ComputedText - nicht entfernen! AdrPoolDBurl = "/em/namo.nsf"; function OpenSMSPage(pagekey) { if ( isloginok() == false ) { recheckin(); return; } width = 560; height = 560; // doc aus StartpageView öffnen var url = GetDBdir(AdrPoolDBurl) + "sms.nsf/spv/" + pagekey + "?opendocument" ; /************************************* TEST******/ // var url = GetDBdir(AdrPoolDBurl) + "smsschab.nsf/spv/" + pagekey + "?opendocument" ; /************************************* TEST******/ var OptionString ='location=no,menubar=no,scrollbars=no,resizable=yes,width=' + width + ',height=' + height ; dlgwin = window.open(url, 'smswin' , OptionString ) ; window.setTimeout("dlgwin.focus()", 50); } function OpenSMS() { OpenSMSPage('namo') ; return; if ( isloginok() == false ) { recheckin(); return; } width = 560; height = 560; var url = GetDBdir(AdrPoolDBurl) + "sms.nsf/sms?openform" ; var OptionString ='location=no,menubar=no,scrollbars=no,resizable=yes,width=' + width + ',height=' + height ; dlgwin = window.open(url, 'smswin' , OptionString ) ; window.setTimeout("dlgwin.focus()", 50); } function OpenLogo() { if ( isloginok() == false ) { recheckin(); return; } width = 560; height = 560; var url = GetDBdir(AdrPoolDBurl) + "sms.nsf/sendlogo?openform" ; var OptionString ='location=no,menubar=no,scrollbars=no,resizable=yes,width=' + width + ',height=' + height ; dlgwin = window.open(url, 'smswin' , OptionString ) ; window.setTimeout("dlgwin.focus()", 50); } function LoadInOpener(url) { opener.location.href = url; self.close(0); } function RefreshOpener() { //opener.history.go(0); opener.location.href=opener.location.href; } /****************************** Einbabefelder auslesen + schreiben **********************************/ 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 GetDBdir(str) { //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 GetOpenerDBurl() { str = opener.location.href; xstr = str.toLowerCase(); x = xstr.indexOf( ".nsf" ) if (x < 0 ) { res = "/" } else { res=str.substring(0,x+4) // von Anfang bis .nsf } return res } function BrowserCheck() { if (navigator.appName=="Netscape") this.name = "ns"; else if (navigator.appName=="Microsoft Internet Explorer") this.name = "ie"; else this.name = navigator.appName; this.version = parseInt(navigator.appVersion); this.ns = (this.name == "ns" && this.version >= 4); this.ns3 = (this.name == "ns" && this.version == 3); this.ns4 = (this.name == "ns" && this.version == 4); this.ns5 = (this.name == "ns" && this.version == 5); this.ie = (this.name == "ie" && this.version >= 4); this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0); this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0); if (this.ie5) this.version = 5; this.win = (navigator.userAgent.indexOf('Win')>0); this.mac = (navigator.userAgent.indexOf('Mac')>0); this.dhtml = (this.ns||this.ie); this.css = (this.ns||this.ie); } /* Für gleichnamige Images d.h. ImgName = ResourceName, wie ViewBullets */ function imgResOVER( lyrname, imgName, curImgName ) { if (is.ns3) return; if (imgName == curImgName) return ; if (imgName == "" ) return ; //alert(lyrname); // Je nach Browser den ImageContainer definieren var tmpdoc = document if (lyrname != "" && is.ns ) { tmpdoc = document.layers[lyrname].document } for(i=0;i @ , ; : \ " . [ ] */ var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]" /* The following string represents the range of characters allowed in a username or domainname */ var validChars="\[^\\s" + specialChars + "\]" /* The following pattern applies if the "user" is a quoted string, E.g. "jiminy cricket"@disney.com */ var quotedUser="(\"[^\"]*\")" /* Pattern for domains that are IP addresses, rather than symbolic names. E.g. joe@[123.124.233.4] is a legal e-mail address. NOTE: The square brackets are required. */ var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/ /* The following string represents an atom (basically a series of non-special characters.) */ var atom=validChars + '+' /* The following string represents one word in the typical username. For example, in john.doe@themorgue.hell, john and doe are words */ var word="(" + atom + "|" + quotedUser + ")" // The following pattern describes the structure of the user var userPat=new RegExp("^" + word + "(\\." + word + ")*$") /* The following pattern describes the structure of a normal symbolic domain, as opposed to ipDomainPat, shown above. */ var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$") /* Finally, let's start trying to figure out if the supplied address is valid. */ /* Begin with the coarse pattern to simply break up user@domain into different pieces that are easy to analyze. */ var matchArray=emailStr.match(emailPat) if (matchArray==null) { /* Too many/few @'s or something; basically, this address doesn't even fit the general mould of a valid e-mail address. */ //alert("Email address seems incorrect (check @ and .'s)") return false } var user=matchArray[1] var domain=matchArray[2] // See if "user" is valid if (user.match(userPat)==null) { // user is not valid // alert("The username doesn't seem to be valid.") return false } /* if the e-mail address is at an IP address make sure the IP address is valid. */ var IPArray=domain.match(ipDomainPat) if (IPArray!=null) { // this is an IP address for (var i=1;i<=4;i++) { if (IPArray[i]>255) { // alert("Destination IP address is invalid!") return false } } return true } // Domain is symbolic name var domainArray=domain.match(domainPat) if (domainArray==null) { // alert("The domain name doesn't seem to be valid.") return false } /* domain name seems valid, but now make sure that it ends in a four-letter word (like com, edu, gov) or a two-letter word, representing country (uk, nl), and that there's a hostname preceding the domain or country. */ /* Now we need to break up the domain to get a count of how many atoms it consists of. */ var atomPat=new RegExp(atom,"g") var domArr=domain.match(atomPat) var len=domArr.length if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>4) { // the address must end in a two letter or three letter word. // alert("The address must end in a three-letter domain, or two letter country.") return false } // Make sure there's a host name preceding the domain. if (len<2) { var errStr="This address is missing a hostname!" // alert(errStr) return false } // If we've gotten this far, everything's valid! // alert(emailStr + ' seems to be a valid address!'); return true; } // Function für HTMLTableClass function FilterContent(url) { res0 = prompt('Bitte geben Sie einen Suchbegriff ein','' ); res1 = escape(res0); if (res0 == "" || res0 == null){ res = "#top"; } else { res = url + res1 } location.href = res ; }