// ******************** // Publishing functions // ******************** function BrowserUpgrade() { alert('You are not currently using Internet Explorer 6.0 or above ' + 'on a Microsoft Platform.\n\nIf you use the above browser you ' + 'would be able to edit content via a "What You See Is What You ' + 'Get" (WYSIWYG) user interface. This allows rich formatting of ' + 'your content including font sizing, font style, colour adjustment' + ', element positioning, ordered lists, unordered lists, hyper ' + 'links and clipboard management. Additionally, you can insert, ' + 'position and size multiple images from your on-line image ' + 'library.\n\nIf you have another machine with the above browser ' + 'installed, we suggest using that machine to update your page content.' ) ; } function DisplayEditor(strField) { // Width and height of the editor var iWidth = 750 ; var iHeight = 500 ; var LeftPosition = (screen.width) ? (screen.width-iWidth)/2 : 0 ; var TopPosition = (screen.height) ? (screen.height-iHeight)/2 : 0 ; var strUrl = "../editor/editor.asp?Field=" + strField ; window.open( strUrl + "&width=" + iWidth + "&height=" + iHeight, "Editor", 'top=' + TopPosition + ',left=' + LeftPosition + ',height=' + iHeight + ',width=' + iWidth + ',resizable=yes,status=no,toolbar=no,menubar=no,location=no,scrollbars=no') ; } // ******************** // ******************** function PageClick() { if (event.button == 2) alert('© 2003 LAS Solutions Ltd\n\nwww.las-solutions.co.uk') ; } 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 += 34 ; iHeight += 42 ; 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 ;