function launch(alink, e) { var url = alink.href ? alink : document.getElementById(alink); var popupwindow = "cibit_extern"; var openedWindow; // check if current location and url location on same host, // if so: display in same window, otherwise in popup window var us = url.host.indexOf(":"); var uc = us==-1 ? url.host : url.host.substring(0,us); var ls = location.host.indexOf(":"); var lc = ls==-1 ? location.host : location.host.substring(0,ls); var popup = uc!=lc if (e.altKey | e.ctrlKey | e.shiftKey) { // user presses special keys on klick, bail out! return true; } if (popup) { //if(uc=="www.dnv.nl") // location.href = "/site.nsf/redirect?OpenForm&goto=" + encodeURIComponent(url); //else if (popupwindow!="") openedWindow = open(url, popupwindow); else openedWindow = open(url); if(openedWindow) openedWindow.focus(); } else { location.href = url; } return false; } function launchwindow(alink, e) { var url = alink.href ? alink : document.getElementById(alink); var popupwindow = "cibit_extern"; var openedWindow; if (e.altKey | e.ctrlKey | e.shiftKey) { // user presses special keys on klick, bail out! return true; } if (popupwindow!="") openedWindow = open(url, popupwindow); else openedWindow = open(url); if(openedWindow) openedWindow.focus(); //always return false return false; } function snelmenu(t) { var url = t.options[t.selectedIndex].value; t.selectedIndex=0; if(url!="") document.location.href=url; } function openzoekinstellingen() { var s; var t; s = "zoekuitgebreid" t = document.all ? document.all[s] : document.getElementById(s); if (t) t.style.display = "inline"; s = "zoekuitklap" t = document.all ? document.all[s] : document.getElementById(s); if (t) t.style.display = "none"; return false; } function sluitzoekinstellingen() { var s; var t; s = "zoekuitgebreid" t = document.all ? document.all[s] : document.getElementById(s); if (t) t.style.display = "none"; s = "zoekuitklap" t = document.all ? document.all[s] : document.getElementById(s); if (t) t.style.display = "inline"; return false; } function show(s) { var t; t = document.all ? document.all[s] : document.getElementById(s); if (t) t.style.display = "inline"; } function hide(s) { t = document.all ? document.all[s] : document.getElementById(s); if (t) t.style.display = "none"; } function process_zoek() { var f = document.forms['zoek']; var s = f.elements['s'].value; if (s == "") alert("zoek trefwoord invullen!") else document.location.href=f.action + "?readform&s=" + escape(s) return false; } function process_extzoek() { var disp; var t; var f = document.forms['extendedsearch']; var s = f.elements['s'].value; var options = ""; disp = "zoekuitgebreid" t = document.all ? document.all[disp] : document.getElementById(disp); if (t && t.style.display != "none") options +="u"; if (f.elements['v'].checked) options += 'v'; if (f.elements['f'].checked) options += 'f'; if (f.c[0].checked) options += f.c[0].value; if (f.c[1].checked) options += f.c[1].value; if (f.c[2].checked) options += f.c[2].value; if (options!="") options = "&t=" + options; if (s == "") alert("zoek trefwoord invullen!") else document.location.href=f.action + "?readform&s=" + escape(s) + options return false; } function checkaanmeldvelden() { var f = document.forms['aanmeld'] var period var exp //check of aanmelding invullen verplicht is if (aanmeldalert != "") { var i for (i=0; i