var strTypeBrowser = '' if (document.layers) { strTypeBrowser = 'NS'; } else if (document.all) { strTypeBrowser = 'IE'; } else if (document.getElementById) { strTypeBrowser = 'MO'; } function f_setbgcolor(p_id, color) { if (strTypeBrowser == 'NS') document[p_id].bgColor = color == 'transparent' ? null : color; else if (strTypeBrowser == 'IE') { document.all[p_id].bgColor = color; } else if (strTypeBrowser == 'MO') { document.getElementById(p_id).bgColor = color; } } function f_settxcolor(p_id, color) { if (strTypeBrowser == 'NS') { document[p_id].color = color == 'transparent' ? null : color; } else if (strTypeBrowser == 'IE') { document.all[p_id].style.color = color; } else if (strTypeBrowser == 'MO') { document.getElementById(p_id).style.color = color; } } function selectbevlist(objSel, waarde) { // Selecteert de waarde die in objSel voorkomt for (var i = 0; i < objSel.options.length; i++) { if (objSel.options[i].value==waarde) { objSel.options[i].selected=true; } } } function DoMouseNavTD(p_id, colorbg, colortxt){ f_setbgcolor(p_id, colorbg); f_settxcolor(p_id, colortxt); } var numHeight = 550; var numWidth = 650; var resizeable = "0"; var wPop ; var scrollable = "no"; function f_popup(nPopWindow,strPagina) { var posX = (screen.width / 2) - (numWidth / 2); var posY = (screen.height / 2) - (numHeight / 2) ; // 20 posX = posX.toString(); posY = posY.toString(); var strParms = "resizable=" + resizeable + ", width=" + numWidth.toString() + ",height=" + numHeight.toString() + ",status=no,toolbar=no,menubar=no,scrollbars=" + scrollable + ",screenx=" + posX + ",left=" + posX + ",top=" + posY + ",screeny=" + posY ; wPop = window.open(strPagina,"boapopup" + nPopWindow.toString(),strParms); wPop.focus(); return wPop; } function f_show(p_id) { document.getElementById(p_id).style.display='block'; } function f_hide(p_id) { document.getElementById(p_id).style.display='none'; } function f_status(p_id) { return document.getElementById(p_id).style.display; } function pageWidth() { return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null; } function pageHeight() { return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null; } function posLeft() { return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0; } function posTop() { return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0; } function posRight() { return posLeft()+pageWidth(); } function posBottom() { return posTop()+pageHeight(); }