+++ /dev/null
-/*\r
- * xbLibrary.js\r
- * $Revision: 1.3 $ $Date: 2003/03/17 03:44:20 $\r
- */\r
-\r
-/* ***** BEGIN LICENSE BLOCK *****\r
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1\r
- *\r
- * The contents of this file are subject to the Mozilla Public License Version\r
- * 1.1 (the "License"); you may not use this file except in compliance with\r
- * the License. You may obtain a copy of the License at\r
- * http://www.mozilla.org/MPL/\r
- *\r
- * Software distributed under the License is distributed on an "AS IS" basis,\r
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
- * for the specific language governing rights and limitations under the\r
- * License.\r
- *\r
- * The Original Code is Bob Clary code.\r
- *\r
- * The Initial Developer of the Original Code is\r
- * Bob Clary.\r
- * Portions created by the Initial Developer are Copyright (C) 2000\r
- * the Initial Developer. All Rights Reserved.\r
- *\r
- * Contributor(s): Bob Clary <bc@bclary.com>\r
- *\r
- * ***** END LICENSE BLOCK ***** */\r
-\r
-if (!document.getElementById || navigator.userAgent.indexOf('Opera') != -1)\r
-{\r
- // assign error handler for downlevel browsers\r
- // Note until Opera improves it's overall support\r
- // for JavaScript and the DOM, it must be considered downlevel\r
-\r
- window.onerror = defaultOnError;\r
- \r
- function defaultOnError(msg, url, line)\r
- {\r
- // handle bug in NS6.1, N6.2\r
- // where an Event is passed to error handlers\r
- if (typeof(msg) != 'string')\r
- {\r
- msg = 'unknown error';\r
- }\r
- if (typeof(url) != 'string')\r
- {\r
- url = document.location;\r
- }\r
-\r
- alert('An error has occurred at ' + url + ', line ' + line + ': ' + msg);\r
- }\r
-}\r
-\r
-function xbLibrary(path)\r
-{\r
- if (path.charAt(path.length-1) == '/')\r
- {\r
- path = path.substr(0, path.length-1)\r
- }\r
- this.path = path;\r
-}\r
-\r
-// dynamically loaded scripts\r
-//\r
-// it is an error to reference anything from the dynamically loaded file inside the\r
-// same script block. This means that a file can not check its dependencies and\r
-// load the files for it's own use. someone else must do this. \r
- \r
-xbLibrary.prototype.loadScript = \r
-function (scriptName)\r
-{\r
- document.write('<script language="javascript" src="' + this.path + '/' + scriptName + '"><\/script>');\r
-};\r
-\r
-// default xbLibrary\r
-\r
-xblibrary = new xbLibrary('./');\r
-\r
-\r