/** * TODO: * FIXME: I should either be a .js file without any script tags * or an .html file with a complete pair of opening and closing script tags. * But somewhere there is a .java handler that has an orphan * opening script tag that should either be removed or moved into this file first. */ // This is required for our support of Netscape 4.x with JS 1.3 that doesn't define these required functions. if (window.encodeURIComponent == null) window.encodeURIComponent = window.escape; // Bugfix 13119 // A wrapper method to prevent document objects from being overwritten // (The wrapper is turning globals into locals) function handleError() { // alert(errorMessage); var browser = navigator.appVersion; if ((errorMessage == "") || (errorMessage == null) || (errorMessage.toLowerCase() == "undefined")) errorMessage = "An undefined error has occurred. Check server log for more information"; if (browser.indexOf('MSIE') >= 0) { var url = "/home/ieErrorDialog.html"; var height = 300; var width = 585; var features = ""; if (browser.indexOf('MSIE ') >= 0) { features = "dialogHeight:" + height + "px;dialogWidth:" + width + "px" + ";center:yes;help:no;status:no"; showModalDialog(url, errorMessage, features); } else { alert(errorMessage); } } else { var url = "/home/navErrorDialog.html" var height = 235; var width = 580; var top = (screen.height / 2) - (height / 2) - 100; var left = (screen.width / 2) - (width / 2); var features = "Height=" + height + ",Width=" + width + ",top=" + top + ",left=" + left + ",scrollbars=no,resizable=no,location=no,toolbar=no"; var win = window.open(url + "?error=" + encodeURIComponent(errorMessage), "NetscapeError", features); win.focus(); } } // Bugfix 13119 // A wrapper method to prevent document objects from being overwritten // (The wrapper is turning globals into locals) handleError();