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 += 36 ; iHeight += 57 ; 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 } //Object constructor function makeObj(obj,nest) { nest=(!nest) ? '':'document.'+nest+'.' this.el = bw.dom ? document.getElementById(obj) : bw.ie4 ? document.all[obj] : bw.ns4 ? eval(nest+'document.'+obj) : 0 ; this.css = bw.dom ? document.getElementById(obj).style : bw.ie4 ? document.all[obj].style : bw.ns4 ? eval(nest+'document.'+obj) : 0 ; this.obj = obj + "Object" eval(this.obj + "=this") return this ; } function hideLoading() { oLoading = new makeObj('Loading') oLoading.css.display = 'none' ; oLoading.css.visibility = 'hidden' ; return true ; } function displayContent() { hideLoading() ; oCont=new makeObj('Loaded') oCont.css.display='block' ; oCont.css.visibility='visible' ; } bw = new checkBrowser() ; function Init() { // Check that the frameset has been loaded CheckFrames() ; //Do any page initialisation DoPageInit() ; } // Do initialisation onload = Init ;