// Script code Copyright MyRo 1999-2003 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; function CBrowserVersion() { this.ver=navigator.appVersion; this.agent=navigator.userAgent.toLowerCase(); this.dom=document.getElementById?1:0; this.opera = -1; if (window.opera) { if (this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) this.opera = 500; else if (this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) this.opera = 600; } this.ie = -1; if (this.opera < 0) { pos = this.agent.indexOf ("msie"); if (pos >= 0) { pos += 5; this.ie = parseFloat (this.agent.substr (pos, pos + 6)) * 100; } } this.mac=(this.agent.indexOf("mac")>-1); this.ns = -1; this.firefox = -1; this.mozilla = -1; if (this.agent.indexOf("firefox") > -1) { pos = this.agent.indexOf("firefox") + 8; this.firefox = parseFloat (this.agent.substring (pos, pos + 6)) * 100; } else if (this.agent.indexOf("gecko")>-1 || window.sidebar) { this.ns = 600; pos = this.agent.indexOf ("netscape"); if (pos > 0) { pos += 9; this.ns = parseFloat (this.agent.substr (pos, pos + 6)) * 100; if (this.ns < 600) this.ns = 600; } else { pos = this.agent.indexOf ("rv:"); if (pos > 0) { pos += 3; this.mozilla = parseFloat (this.agent.substr (pos, pos + 6)) * 100; } } } else if (!this.dom && document.layers) this.ns = 400; this.usedom= this.ns >= 600 || this.firefox >= 0; this.reuse = this.ie >= 400 || this.usedom || this.firefox >= 0;//Reuse layers this.useDhtml= this.ie >= 400 || this.firefox >= 0 || this.ns >= 500; this.useLayer=this.ns == 400; this.supportError=this.ie >= 500 || this.ns >= 600 || this.firefox >= 0; 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.ie >= 400) GetParentNode = function(obj) {return obj ? obj.parentElement : NULL;}; else GetParentNode = function (obj) {return obj ? obj.parentNode : NULL;}; return this; } var browserVersion=new CBrowserVersion(); function SupportDHTML () { if (browserVersion == null) return false; return browserVersion.useDhtml; } function IEVersion () { if (browserVersion == null) return 0; return browserVersion.ie; } function NSVersion () { if (browserVersion == null) return 0; return browserVersion.ns; } function FireFoxVersion () { if (browserVersion == null) return 0; return browserVersion.firefox; } 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 () >= 500 || FireFoxVersion () >= 0) return ''; else if (IEVersion () >= 400) return ''; else if (IEVersion () >= 300) return ''; else if (this.ns > 0) 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 ('