function CheckFrames() { // Check that we've loaded the frameset var strLoc = String(window.location.href) ; if (top.location.href == strLoc) { // We need to load the frame set top.location.href = "/default.asp?redirectto=" + strLoc ; } } function DisplayPopup(strUrl, strWidth, strHeight) { var iWidth = Number(strWidth) ; var iHeight = Number(strHeight) ; var bHasQry = false ; var LeftPosition = (screen.width) ? (screen.width-iWidth)/2 : 0 ; var TopPosition = (screen.height) ? (screen.height-iHeight)/2 : 0 ; // We must add additional width and height values iWidth += 49 ; iHeight += 71 ; if (-1 != strUrl.indexOf(".asp?")) { bHasQry = true ; } window.open( strUrl + ((bHasQry)?"&":"?") + "width=" + strWidth + "&height=" + strHeight, null, 'top=' + TopPosition + ',left=' + LeftPosition + ',height=' + iHeight + ',width=' + iWidth + ',resizable=no,status=no,toolbar=no,menubar=no,location=no,scrollbars=no') ; } function checkBrowser() { this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(top.document.layers && !this.dom)?1:0; this.ie=(this.ie4 || this.ie5)?1:0 ; this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) ; return this } bw = new checkBrowser() ; function Init() { // Check that the frameset has been loaded CheckFrames() ; //Do any page initialisation DoPageInit() ; } // Do initialisation onload = Init ;