function getById(id) { return document.getElementById?document.getElementById(id):(document.all?document.all(id):null); }
function hideDiv(id) { getById(id).style.visibility = "hidden"; getById(id).style.display = "none"; }
function showDiv(id) { getById(id).style.visibility = "visible"; getById(id).style.display = "inline"; }
originalColorArray = new Array(); 
function changeBg(tr) { if (isTrMarked(tr)) return; var children = tr.childNodes; tmpArray = new Array(); if (tr.children) { for (var i=0;i < children.length; i++) { tmpArray[i] = tr.children[i].bgColor; tr.children[i].bgColor='cccccc'; } } originalColorArray[tr.rowIndex] = tmpArray; }
function resetBg(tr) { if (isTrMarked(tr)) return; tmpArray = originalColorArray[tr.rowIndex]; var children = tr.childNodes; if (tr.children) { for (var i=0;i < children.length; i++) { tr.children[i].bgColor=tmpArray[i]; } } }
function isTrMarked(tr) { if (tr.children && tr.children[0].bgColor=='#437ca7') { return true; } return false; }
function NyttWin() { OpenWindow= window.open("","NyttWin","width=200,height=200,resizable=0,scrollbars=no,menubar=no,status=no, history=no"); self.name="main" }
function NyttStorWin() { OpenWindow= window.open("","NyttStorWin","width=300,height=300,resizable=0,scrollbars=no,menubar=no,status=no, history=no"); self.name="main" }