// Script code Copyright MyRo 1999-2008 var GetObjectByRef = null; function errorHandler(message, url, line) { window.alert ("Een fout gebeurde: " + message + "\n op de lijn:" + line + "\n in: " + url); // stop the event from bubbling up to the default window.onerror handler return true; } // install the global error-handler window.onerror = errorHandler; OS_UNKNOWN = 0; OS_LINUX = 1; OS_UBUNTU = 2; OS_MAC = 3; OS_WINDOWS = 4; BROWSER_UNKNOWN = 0; BROWSER_IE = 1; BROWSER_NS = 2; BROWSER_KONQUEROR = 3; BROWSER_OPERA = 4; BROWSER_FF = 5; BROWSER_SAFARI = 6; BROWSER_CHROME = 7; function BV_checkBrowser (key, browser) { var pos; pos = this.agent.indexOf (key); if (pos >= 0) { this.version = Math.floor (parseFloat (this.agent.substr (pos + key.length)) * 100); this.browser = browser; return true; } return false; } function BV_checkVersion (key) { var pos; pos = this.agent.indexOf (key); if (pos >= 0) { return Math.floor (parseFloat (this.agent.substr (pos + key.length)) * 100); } return -1; } function BV_checkOS (key, os) { var pos; pos = this.agent.indexOf (key); if (pos >= 0) { this.os = os; return true; } return false; } function BV_checkProperty (key) { return this.agent.indexOf (key) >= 0; } function BV_getVersion (browser) { if (this.browser == browser) return this.version; return -1; } function CBrowserVersion() { this.checkBrowser = BV_checkBrowser; this.checkVersion = BV_checkVersion; this.checkOS = BV_checkOS; this.checkProperty = BV_checkProperty; this.getVersion = BV_getVersion; this.ver = navigator.appVersion; this.agent = navigator.userAgent.toLowerCase(); if (!(this.checkOS ('ubuntu', OS_UBUNTU) || this.checkOS ('mac', OS_MAC) || this.checkOS ('linux', OS_LINUX) || this.checkOS ('windows', OS_WINDOWS))) this.os = OS_UNKNOWN; if (!(this.checkBrowser ('opera/', BROWSER_OPERA) || this.checkBrowser ('msie ', BROWSER_IE) || this.checkBrowser ('navigator/', BROWSER_NS) || this.checkBrowser ('netscape/', BROWSER_NS) || this.checkBrowser ('firefox/', BROWSER_FF) || this.checkBrowser ('konqueror', BROWSER_KONQUEROR) || this.checkBrowser ('safari', BROWSER_SAFARI) || this.checkBrowser ('chrome/', BROWSER_CHROME) || this.checkBrowser ('mozilla/', BROWSER_NS) )) this.browser = BROWSER_UNKNOWN; this.mozilla = this.checkVersion ('mozilla/'); this.gecko = this.checkProperty ('gecko'); this.webkit = this.checkVersion ('applewebkit/'); this.dom = document.getElementById?1:0; this.usedom = this.getVersion (BROWSER_NS) >= 600; this.reuse = this.getVersion (BROWSER_IE) >= 400 || this.usedom;//Reuse layers this.useDhtml = (this.getVersion (BROWSER_IE) > 300) || (this.getVersion (BROWSER_NS) > 600) || this.mozilla >= 500 || this.browser == BROWSER_SAFARI || this.browser == BROWSER_KONQUEROR || this.webkit > 0; this.useLayer = this.getVersion (BROWSER_NS) == 400; this.supportError = this.getVersion (BROWSER_IE) >= 500 || this.getVersion (BROWSER_NS) >= 600; if (document.all) GetObjectByRef = function (nm) {return window.document.all [nm];}; else if (document.getElementById) GetObjectByRef = function (nm) {return document.getElementById (nm);}; else if (document.layers) GetObjectByRef = function (nm) {return document.layers [nm];}; else GetObjectByRef = null; if (this.browser == BROWSER_IE && (this.version < 500 && this.version >= 400)) GetParentNode = function(obj) {return obj ? obj.parentElement : NULL;}; else GetParentNode = function (obj) {return obj ? obj.parentNode : NULL;}; //window.alert ("agent=" + this.agent + " ver=" + this.ver + " os=" + this.os + " version=" + this.version + " browser=" + this.browser); return this; } var browserVersion = new CBrowserVersion(); function SupportDHTML () { if (browserVersion == null) return false; return browserVersion.useDhtml; } function GetBrowserVersion (browser) { if (browserVersion == null || browserVersion.browser != browser) return 0; return browserVersion.version; } function IEVersion () { return GetBrowserVersion (BROWSER_IE); } function NSVersion () { return GetBrowserVersion (BROWSER_NS); } function FireFoxVersion () { return GetBrowserVersion (BROWSER_FF); } function OperaVersion () { return GetBrowserVersion (BROWSER_OPERA); } function KonquerorVersion () { return GetBrowserVersion (BROWSER_KONQUEROR); } function SafariVersion () { return GetBrowserVersion (BROWSER_SAFARI); } function SupportLayers () { if (browserVersion == null) return false; return browserVersion.useLayer; } function SupportAnimation () { if (browserVersion == null) return false; return browserVersion.ie >= 550; } function Check() { if (!SupportDHTML ()) return; var obj; for (var i=0; i < Data.elements.length; i++) { obj=Data.elements[i]; if (obj.type=="text" && Data.elements[i].value.length > 0) { doSubmit.style.visibility="visible"; return 1; } } doSubmit.style.visibility="hidden"; } function InitSheet() { if (SupportDHTML ()) doSubmit.style.visibility="hidden"; } function GetStyleSheet (location) { if (IEVersion () >= 0) { if (IEVersion () < 400) return ''; if (IEVersion () < 500) return ''; } if (KonquerorVersion () >= 0) return ''; if (NSVersion () >= 0) { if (NSVersion () < 500) return ''; } return ''; } function ShowAnswer (id, hide) { if (SupportDHTML ()) if (hide) id.style.display="none"; else id.style.display=""; } function ToggleAnswer (id) { if (SupportDHTML ()) { if (id.style.display=="none") id.style.display=""; else id.style.display="none"; } } function ToggleAnswerS (oItems) { var obj = GetObjectByRef (oItems); if (obj) { if (obj.style.display == "none") { obj.style.display = "inline"; } else { obj.style.display = "none"; } } } function SelectMenu (id) { if (SupportDHTML ()) { if (id.className == "RMenu") id.className = "RMenuPush"; id.style.color = "Red"; } } function UnselectMenu (id) { if (SupportDHTML ()) { if (id.className == "RMenuPush") id.className = "RMenu"; id.style.color = "Black"; } } function ToggleDisplay(oItems) { var obj = GetObjectByRef (oItems); if (obj) if ((obj.style.display == "") || (obj.style.display == "none")) { obj.style.display = "block"; //oButton.src = "/msdn-online/start/images/minus.gif"; } else { obj.style.display = "none"; //oButton.src = "/msdn-online/start/images/plus.gif"; } } var menuCount; function InitDownMenu1 (sTitle) { menuCount = 0; document.write ('