<!--
function Validator(theForm)
{

  if (theForm.naam.value == "")
  {
    alert("U bent uw naam vergeten in te voeren.");
    theForm.naam.focus();
    return (false);
  }
   if (theForm.woonplaats.value == "")
  {
    alert("Voer a.u.b. uw woonplaats in.");
    theForm.woonplaats.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("U bent uw e-mailadres vergeten in te voeren");
    theForm.email.focus();
    return (false);
  }

  return (true);
}

function Checkreactie(theForm){
	
  if (theForm.tekst.value == "")
  {
    alert("U bent tekst vergeten in te voeren");
    theForm.tekst.focus();
    return (false);
  }

  return (true);
}

//-->
function openSectieC(){
	window.open( 'function/afwezigheidsectieC.php', 'Afwezigheidsformulier', 'menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=950,height=700 top=50,left=50');
} 
function openSectieD(){
	window.open( 'function/afwezigheidsectieD.php', 'Afwezigheidsformulier', 'menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=950,height=700 top=50,left=50');
} 


function getMouseXY(e) // works on IE6,FF,Moz,Opera7
{ 
  if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event)

  if (e)
  { 
    if (e.pageX || e.pageY)
    { // this doesn't work on IE6!! (works on FF,Moz,Opera7)
      mousex = e.pageX;
      mousey = e.pageY;
      algor = '[e.pageX]';
      if (e.clientX || e.clientY) algor += ' [e.clientX] '
    }
    else if (e.clientX || e.clientY)
    { // works on IE6,FF,Moz,Opera7
      mousex = e.clientX + document.body.scrollLeft;
      mousey = e.clientY + document.body.scrollTop;
      algor = '[e.clientX]';
      if (e.pageX || e.pageY) algor += ' [e.pageX] '
    }
  }
  return mousey;  
}

// mailonderhoud functies
function DIVvis(name){
	document.getElementById(name).style.display='block';
	document.getElementById(name).style.top=getMouseXY()-120;
}
function DIVweg(name){
	document.getElementById(name).style.display='none';
}
function BGcolor_make(name){
	document.getElementById(name).style.background='ccd9e1';
}
function BGcolor_back(name){
	document.getElementById(name).style.background='eeeeee';
}