/******************************************************************************* Copyright (c) 2000 Fætter BR A/S - Danmark Author : Kim E. Petersson Created : 2000 - 11 - 22 Description : This is a collection of javascript source code. *******************************************************************************/ function checkBrowser() { if (document.layers) { layerRef = "document.layers"; styleRef = ""; showRef = "show"; hideRef = "hide"; v4 = true; } else if (document.all) { layerRef = "document.all"; styleRef = ".style"; showRef = "visible"; hideRef = "hidden"; v4 = true; } else { v4 = false; } var agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1))); this.ns2 = (this.ns && (this.major == 2)); this.ns3 = (this.ns && (this.major == 3)); this.ns4b = (this.ns && (this.minor < 4.04)); this.ns4 = (this.ns && (this.major >= 4)); this.ie = (agent.indexOf("msie") != -1); this.ie3 = (this.ie && (this.major == 2)); this.ie4 = (this.ie && (this.major >= 4)); this.op3 = (agent.indexOf("opera") != -1); this.win = (agent.indexOf("win")!=-1); this.mac = (agent.indexOf("mac")!=-1); this.unix = (agent.indexOf("x11")!=-1); return this } var cb = new checkBrowser(); function layer(name, property) { return (layerRef + "['" + name + "']" + property); } function showlayer(no) { if (v4) { layer("layer"+no, styleRef).visibility = showRef; } } function hidelayer(no) { if (v4) { layer("layer"+no, styleRef).visibility = hideRef; } } function openWindow(openURL, windowName, top, left, width, height, statusbar, menubar, resizable, scrollbars) { optionString = "top="+top+",left="+left+",width="+width+",height="+height+",status="+statusbar+",menubar="+menubar+",resizable="+resizable+",scrollbars="+scrollbars; popUpWindow = window.open(openURL, windowName, optionString); popUpWindow.focus(); } function closeWindow() { popUpWindow.close(); } function openStdWindow(openURL, windowName) { popUpWindowStd = window.open(openURL, "BRwindow"); popUpWindowStd.focus(); } function closeStdWindow() { popUpWindowStd.close(); } function changeLocation2(formName, listboxName, ref) { doc = eval("document['"+formName+"']['"+listboxName+"']"); if (doc.selectedIndex!=0) { var chosen = doc.options[doc.selectedIndex].value; if(window.opener && !window.opener.closed) { window.opener.location = ref+chosen; window.blur(); window.opener.focus(); } else { openStdWindow(ref+chosen,"BR"); } } } function changeLocation(formName, listboxName, ref) { doc = eval("document['"+formName+"']['"+listboxName+"']"); if (doc.selectedIndex!=0) { var chosen = doc.options[doc.selectedIndex].value; window.location = ref+chosen; } }