<!--
//check email valid NL
function echeckNL(str) {		var at="@"		var dot="."		var lat=str.indexOf(at)		var lstr=str.length		var ldot=str.indexOf(dot)		if (str.indexOf(at)==-1){		   alert("Vul a.u.b. een geldige E-mail in")		   return false		}		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){		   alert("Vul a.u.b. een geldige E-mail in")		   return false		}		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){		    alert("Vul a.u.b. een geldige E-mail in")		    return false		}		 if (str.indexOf(at,(lat+1))!=-1){		    alert("Vul a.u.b. een geldige E-mail in")		    return false		 }		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){		    alert("Vul a.u.b. een geldige E-mail in")		    return false		 }		 if (str.indexOf(dot,(lat+2))==-1){		    alert("Vul a.u.b. een geldige E-mail in")		    return false		 }				 if (str.indexOf(" ")!=-1){		    alert("Vul a.u.b. een geldige E-mail in")		    return false		 } 		 return true						}

//field checking PMA-C

function CheckRequiredFields() {
var errormessage = new String();

if(WithoutContent(document.contact.voornaam.value))
	{ errormessage += "\n\nVul a.u.b. je Voornaam in."; }
if(WithoutContent(document.contact.achternaam.value))
	{ errormessage += "\n\nVul a.u.b. je Achternaam in."; }
if(WithoutContent(document.contact.email.value))
	{ errormessage += "\n\nVul a.u.b. je E-mail in."; }
if(WithoutContent(document.contact.bus_dayphone.value))
	{ errormessage += "\n\nVul a.u.b. je Telefoonnummer in."; }

var str=document.contact.level_2.valuevar pos=str.indexOf("reeds volgeboekt")if (pos>=0){errormessage += "\n\nOngeldige Datum of geen beschikbare plaatsen meer";}
if(errormessage.length > 2) {
	alert('Opmerking:' + errormessage);
	return false;
	}
return true;
} 

// end of function CheckRequiredFields_ContactNL()

//field checking PMA Contact NL

function CheckRequiredFields_ContactNL() {
var errormessage = new String();

if(WithoutContent(document.contactNL.naam.value))
	{ errormessage += "\n\nVul a.u.b. je Naam in."; }
if(WithoutContent(document.contactNL.email.value))
	{ errormessage += "\n\nVul a.u.b. je E-mail in."; }
if(WithoutContent(document.contactNL.dayphone.value))
	{ errormessage += "\n\nVul a.u.b. je Telefoonnummer in."; }
if(WithoutContent(document.contactNL.onderwerp.value))
	{ errormessage += "\n\nVul a.u.b. een Onderwerp in."; }
if(WithoutContent(document.contactNL.bericht.value))
	{ errormessage += "\n\nVul a.u.b. je Bericht in."; }


if(errormessage.length > 2) {
	alert('Opmerking:' + errormessage);
	return false;
	}
return true;
} 

// end of function CheckRequiredFields_ContactNL()

//field checking EN
function CheckRequiredFieldsEN() {
var errormessage = new String();

if(WithoutContent(document.contactEN.naam.value))
	{ errormessage += "\n\nPlease enter your Name."; }
if(WithoutContent(document.contactEN.email.value))
	{ errormessage += "\n\nPlease enter your E-mail."; }
if(WithoutContent(document.contactEN.dayphone.value))
	{ errormessage += "\n\nPlease enter your Phonenumber in."; }
if(WithoutContent(document.contactEN.onderwerp.value))
	{ errormessage += "\n\nPlease select your Subject."; }
if(WithoutContent(document.contactEN.bericht.value))
	{ errormessage += "\n\nPlease enter your Message."; }


if(errormessage.length > 2) {
	alert('Opmerking:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFieldsEN()

function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}

//end field checking
//field checking EN
function CheckRequiredFields_de20min() {
var errormessage = new String();
var emailID=document.de20min.email

if(WithoutContent(document.de20min.name.value))
	{ errormessage += "\n\nVul a.u.b. je Naam in."; }
if(WithoutContent(document.de20min.email.value))
	{ errormessage += "\n\nVul a.u.b. je E-mail in."; }

if(errormessage.length > 2) {
	alert('Opmerking:' + errormessage);
	return false;
	}
if ((emailID.value==null)||(emailID.value=="")){	alert("Vul a.u.b. je E-mail in.")	emailID.focus()	return false	}if (echeckNL(emailID.value)==false){	emailID.value=""	emailID.focus()	return false	}
return true;
} // end of function CheckRequiredFieldsEN()

function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}

//end field checking-->