// JavaScript Document window.onerror = stopError function stopError() { // return true; } function Show_afbeelding(photo_id,gallery_id){ var leftPos = (screen.availWidth-640) / 2; var topPos = (screen.availHeight-480) / 2; popupWin = window.open('','','width=640,height=480, status=no,scrollbars=auto,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos); popupWin.location='photo_popup.php?photo_id='+photo_id+'&gallery_id='+gallery_id; } function Show_nieuwsphoto(afbeelding){ var leftPos = (screen.availWidth-640) / 2; var topPos = (screen.availHeight-480) / 2; popupWin = window.open('','','width=640,height=480, status=no,scrollbars=auto,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos); popupWin.location='photo_popup.php?afbeelding='+afbeelding; } function Show_nieuwsbrief(nieuwsbrief_id){ var leftPos = (screen.availWidth-640) / 2; var topPos = (screen.availHeight-480) / 2; popupWin = window.open('','','width=640,height=480, status=no,scrollbars=yes,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos); popupWin.location = 'nieuwsbrief/view.php?nieuwsbrief_id='+nieuwsbrief_id; } function isValidEmail(str) { var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (filter.test(str)){ return true; } else { return false; } } function isValidLink(str) { var filter = /^(file|http):\/\/\S+\.([a-z]{2,4})$/i if (filter.test(str)){ return true; } else { return false; } } function doMail(which) { //Init var valid = "yes"; //Check if(which=="mailinglist_aanmelden"){ if(document.getElementById('email').value=="" || !isValidEmail(document.getElementById('email').value)){ valid = 'no'; } } else if(which=="contact") { if (document.getElementById('naam').value=='') var valid = 'no'; if (document.getElementById('email').value=='') var valid = 'no'; if (document.getElementById('opmerkingen').value=='') var valid = 'no'; } else if(which=="activiteiten"){ if (document.getElementById('aanhef').value=='') var valid = 'no'; // if (document.getElementById('functie').value=='') var valid = 'no'; if (document.getElementById('postadres').value=='') var valid = 'no'; if (document.getElementById('postcode').value=='') var valid = 'no'; if (document.getElementById('woonplaats').value=='') var valid = 'no'; if (document.getElementById('telefoon').value=='') var valid = 'no'; // if (document.getElementById('mobiel').value=='') var valid = 'no'; if (document.getElementById('email').value=='') var valid = 'no'; // if (document.getElementById('geboortedatum').value=='') var valid = 'no'; // if (document.getElementById('kledingmaat').value=='') var valid = 'no'; } else if(which=="vacature"){ //Check var aantal_uploads = document.all.aantal_uploads.value; for(i=1;iPrint deze pagina \n"; text += eval('document.all.'+page+'.innerHTML'); text = text.replace("doPrint('"+page+"')","print()"); text = text.replace("popupMail()",""); text += "
Venster sluiten
"; text += ""; printWin = window.open('','','width=600,height=420,scrollbars=yes,resizable=yes,titlebar=0'); printWin.document.write(text) printWin.document.close() printWin.print() } function popupMail() { mailWin = window.open('email_popup.php','','width=300,height=160,scrollbars=yes,resizable=yes,titlebar=0'); } var today = new Date(); var expiry = new Date(today.getTime() + 300 * 24 * 60 * 60 * 1000); function getCookie(name) { var name = "SOD___"+name; var index = document.cookie.indexOf(name + "="); if (index == -1) return null; index = document.cookie.indexOf("=", index) + 1; var endstr = document.cookie.indexOf(";", index); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(index, endstr)); } function setCookie(name, value) { var name = "SOD___"+name; if (value != null && value != "") { document.cookie = name + "=" + escape(value) + "; expires=" + expiry.toGMTString(); document.cookie = document.cookie; } } function getIFrameDocument(aID){ if (IFrameObj.contentDocument) { // For NS6 return IFrameObj.contentDocument; } else if (IFrameObj.contentWindow) { // For IE5.5 and IE6 return IFrameObj.contentWindow.document; } else if (IFrameObj.document) { // For IE5 return IFrameObj.document; } else { return false; } } var IFrameObj; // our IFrame object var isResized = false; var oContainer; // Containing the iframe function iframeWindow(url, target){ if(document.getElementById("iframe_holder").tagName=="TR"){ oContainer = document.getElementById("iframe_holder").cells[0]; } else { oContainer = document.getElementById("iframe_holder"); } callToServer(url, target); // Verwijderen en aanmaken van iframe noodzakelijk ivm toegangsbeveiliging browser if(url!="" && isResized==false){ isResized = true; if(document.all){ // IE oContainer.style.width = "700px"; oContainer.style.height = "100%"; } else if(document.getElementById){ //Mozilla targetWidth = document.getElementById("content").offsetWidth; targetHeight = document.getElementById("content").offsetHeight; oContainer.style.width = targetWidth; // minus left/right padding 8 + 8? oContainer.style.height = targetHeight; // minus top/bottom padding 20 + 20? } } document.getElementById("content").style.display = "none"; document.getElementById("iframe_holder").className = "iholder_show"; // Positie van het menu corrigeren na eventueel wegvallen scrollbalk if(document.getElementById("holder")){ setHolder("siteondemand", "holder"); moveMenuBack('siteondemand'); } } function callToServer(url, target) { if (!document.createElement) {return true}; var IFrameDoc; if(IFrameObj){ // Iframe bestaat, verwijderen en nieuwe aanmaken oIframe = document.getElementById("_iframe"); oIframe.parentNode.removeChild( oIframe ); // oContainer.innerHTML = ""; } if (document.createElement) { // create the IFrame and assign a reference to the // object to our global variable IFrameObj. try { var tempIFrame=document.createElement('iframe'); tempIFrame.setAttribute('id','_iframe'); tempIFrame.style.border='none'; tempIFrame.style.width='100%'; tempIFrame.style.height='100%'; tempIFrame.frameBorder="0"; IFrameObj = oContainer.appendChild(tempIFrame); if (document.frames) { // this is for IE5 Mac, because it will only // allow access to the document object // of the IFrame if we access it through // the document.frames array IFrameObj = document.frames['_iframe']; } } catch(exception) { // This is for IE5 PC, which does not allow dynamic creation // and manipulation of an iframe object. Instead, we'll fake // it up by creating our own objects. iframeHTML='