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(); } function doPopUpPreviewTekst(strVeld1, strVeld2, strTabel, strKey) { strLink = '../shared/beh_tekst_preview_popup.asp?v1=' + strVeld1 + '&v2=' + strVeld2 + '&t=' + strTabel + '&i=' + strKey; scrollable = "yes"; f_popup(3, strLink); } function doPopUpOpmaaktext() { strLink = '../shared/beh_uitleg_opmaak.asp' f_popup(4, strLink); } function f_checkdatum(fldD, fldM, fldY, fldVeld) { var dCheck = new Date(fldY.value, fldM.value-1, fldD.value); if ((dCheck.getDate() == fldD.value) && (dCheck.getMonth() == fldM.value-1)) { // ok! } else { alert('Deze datum is niet correct. Kies een andere.'); selectbevlist(fldD, 1); // Datum wordt op 1 gezet, is altijd geldig fldD.focus(); } // Zet het veld op de juiste waarde fldVeld.value = ''; fldVeld.value = fldVeld.value + fldD.value.toString() + '-' if (fldM.value < 10) { fldVeld.value = fldVeld.value + '0'; } fldVeld.value = fldVeld.value + fldM.value.toString() + '-' + fldY.value.toString() ; }