//actieve pagina menu
var str=document.location.toString().split("?");
var p ="";
var q = "";
if(str[1]) p = str[1].split("&");
q=p[0];
if(!p[0]) q = "welkom";

document.write ("<style><!--a#"+q+" {color: #EE0000; padding-top: 1px; padding-right: 2px; padding-bottom:1px; padding-left: 1px; BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; Z-INDEX: 15; BORDER-LEFT: gray 1px solid; BORDER-BOTTOM: gray 1px solid; background-color: #ffffee;}--></style>");

// parent.header.location.reload();

function PopUp(pagina,breedte,tool)
  {
  newwindow=window.open(pagina,"","width=" + breedte + ",height=450,,scrollbars=yes,resizable=yes,toolbar=" + tool + "");
  }


function Form1_Validator(theForm)
{

if (theForm.aan.value.length < 1)
  {
    alert("Vul de naam in, alsjeblieft!");
    theForm.aan.focus();
    return (false);
  }

if (!check_email(theForm.aan_email.value))
  {
    alert("Vul het emailadres in, alsjeblieft!");
    theForm.aan_email.focus();
    return (false);
  }


if (theForm.van.value.length < 1)
  {
    alert("Vul je naam in, alsjeblieft!");
    theForm.van.focus();
    return (false);
  }

if (!check_email(theForm.van_email.value))
  {
    alert("Vul je emailadres in, alsjeblieft!");
    theForm.van_email.focus();
    return (false);
  }


if (theForm.onderwerp.value.length < 1)
  {
    alert("Vul het onderwerp in, alsjeblieft!");
    theForm.onderwerp.focus();
    return (false);
  }


if (theForm.boodschap.value.length < 1)
  {
    alert("Vul een boodschap in, alsjeblieft!");
    theForm.boodschap.focus();
    return (false);
  }


  return (true);

}

function check_email(address) {
  if ((address == "")
    || (address.indexOf ('@') == -1)
    || (address.indexOf ('.') == -1))
      return false;
  return true;
}
