function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function toggleDiv (id) {
   var ele = document.getElementById (id);
   ele.style.display = (ele.style.display=='block') ? 'none' : 'block';
}

function languagecheck() {
var text = window.location.href;
var pattern = new RegExp(/L=1/);

if (pattern.exec(text)){
document.write('<a href="javascript:history.go(-1)"><< Go Back</a>');
}
else{
document.write('<a href="javascript:history.go(-1)"><< Ga Terug</a>'); 
}

}

function goHome() {
window.location="index.html";
}

function checkCheckBoxes() {
if (document.getElementById('voorwaarden').checked == false) {
alert ('U dient akkoord te gaan met de Algemene Voorwaarden!');
return false;
} else {
return true;
}
}