var bMouseOver = true; var alternateContent = ''; browserName = navigator.appName; browserVersion = parseInt (navigator.appVersion); if (browserName == "Microsoft Internet Explorer" && browserVersion < 4) { bMouseOver = false; } if (bMouseOver) { NLaan = new Image(); NLaan.src = "images/flag_nl_hi.gif"; NLuit = new Image(); NLuit.src = "images/flag_nl_hi.gif"; ENaan = new Image(); ENaan.src = "images/flag_en_hi.gif"; ENuit = new Image(); ENuit.src = "images/flag_en.gif"; } function img_act(imgName) { if (bMouseOver) { imgOn = eval(imgName + "aan.src"); document [imgName].src = imgOn; } } function img_inact(imgName) { if (bMouseOver) { imgOff = eval(imgName + "uit.src"); document [imgName].src = imgOff; } } function openRSSWindow(url, height, width, name) { var left = Math.floor( (screen.width - width) / 2); var top = Math.floor( (screen.height - height) / 2); var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width; winParms += ",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes"; var win = window.open(url, name, winParms); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function openPhotoWindow(url, height, width, name) { var left = Math.floor( (screen.width - width) / 2); var top = Math.floor( (screen.height - height) / 2); var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width; winParms += ",status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no"; var win = window.open(url, name, winParms); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function changeStyle(id, stylename) { if (document.getElementById(id)) { document.getElementById(id).className = stylename; } } function highlightNews(id) { if (document.getElementById(id)) { document.getElementById(id).style.color='#15181d'; document.getElementById(id).style.cursor='pointer'; document.getElementById(id).style.listStyleImage = 'url(./images/list-image_hi.gif)'; } } function unHighlightNews(id) { if (document.getElementById(id)) { document.getElementById(id).style.color='#FFFFFF'; document.getElementById(id).style.listStyleImage = 'url(./images/list-image.gif)'; } } function highlightSponsorNews(id) { if (document.getElementById(id)) { document.getElementById(id).style.color='#da150c'; document.getElementById(id).style.cursor='pointer'; document.getElementById(id).style.listStyleImage = 'url(./images/list-image.gif)'; } } function unHighlightSponsorNews(id) { if (document.getElementById(id)) { document.getElementById(id).style.color='#15181d'; document.getElementById(id).style.listStyleImage = 'url(./images/list-image_hi.gif)'; } } function highlightRSSNews(id) { if (document.getElementById(id)) { document.getElementById(id).style.color='#da150c'; document.getElementById(id).style.cursor='pointer'; document.getElementById(id).style.listStyleImage = 'url(./images/list-image.gif)'; } } function unHighlightRSSNews(id) { if (document.getElementById(id)) { document.getElementById(id).style.color='#15181d'; document.getElementById(id).style.listStyleImage = 'url(./images/list-image_hi.gif)'; } } function replaceAll( str, from, to ) { var idx = str.indexOf( from ); while ( idx > -1 ) { str = str.replace( from, to ); idx = str.indexOf( from ); } return str; } function isEmailAdres(string) { var patroon = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; return patroon.test(string); } function isTel(string) { if(string.length!=10) return false; return isTelefoon(string) || isMobile(string); } function isTelefoon(string) { var patroon = /^0[1-9][0-9]{1,2}(-{0,1})[1-9][0-9]{5,6}$/; return patroon.test(string); } function SubmitForm() { var sError = ""; var bReturn = true; if (document.frmInfo.Voornaam.value == ""){sError = sError + "- Voornaam\n"; bReturn = false;} if (document.frmInfo.Achternaam.value == ""){sError = sError + "- Achternaam\n"; bReturn = false;} if ((!document.frmInfo.Geslacht[0].checked)&&(!document.frmInfo.Geslacht[1].checked)){sError = sError + "- Aanhef\n"; bReturn = false;} document.frmInfo.Telefoon.value = replaceAll(document.frmInfo.Telefoon.value,"-",""); if (document.frmInfo.Telefoon.value == ""){sError = sError + "- Telefoon\n"; bReturn = false;} if(!isEmailAdres(document.frmInfo.Email.value)){sError = sError + "- E-mailadres\n"; bReturn = false;} if (sError == "") { document.frmInfo.submit(); } else { alert ("Gelieve de volgende velden in te vullen:\n\n" + sError); bReturn = false; } return bReturn; } function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i