function PopUp(URL, w, h)
	{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h);");
	}

function validate_form() {
  validity = true; 
  if (!check_empty(document.form.naam.value))
        { validity = false; alert('U heeft geen naam ingevuld!'); }
  if (!check_email(document.form.email.value))
        { validity = false; alert('Het E-mail adres is ongeldig!'); }
return validity;
}

function validate_email() {
  validity = true; 
  if (!check_email(document.form.email2.value))
        { validity = false; alert('Het E-mail adres is ongeldig!'); }
return validity;
}

function validate_form_uitgebr() {
  validity = true; 
  if (!check_empty(document.form.naam.value))
        { validity = false; alert('U heeft geen naam ingevuld!'); }
  if (!check_empty(document.form.adres.value))
        { validity = false; alert('U heeft geen adres ingevuld!'); }
  if (!check_empty(document.form.woonplaats.value))
        { validity = false; alert('U heeft geen woonplaats ingevuld!'); } 
  if (!check_email(document.form.email.value))
        { validity = false; alert('Het E-mail adres is ongeldig!'); }
return validity;
}

function check_empty(text) {
  return (text.length > 0); // returns false if empty
}

function check_email(adres) {
  if ((adres == "")
    || (adres.indexOf ('@') == -1)
    || (adres.indexOf ('.') == -1))
      return false;
  return true;
}

