/** * DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) */function echeck(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 aub een geldig e-mail adres in")		   return false		}		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){		   alert("Vul aub een geldig e-mail adres in")		   return false		}		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){		    alert("Vul aub een geldig e-mail adres in")		    return false		}		 if (str.indexOf(at,(lat+1))!=-1){		    alert("Vul aub een geldig e-mail adres in")		    return false		 }		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){		    alert("Vul aub een geldig e-mail adres in")		    return false		 }		 if (str.indexOf(dot,(lat+2))==-1){		    alert("Vul aub een geldig e-mail adres in")		    return false		 }				 if (str.indexOf(" ")!=-1){		    alert("Vul aub een geldig e-mail adres in")		    return false		 } 		 return true						}function ValidateForm(theform){
	var nameID=theform.form_naam;	var compID=theform.form_bedrijfsnaam;	var adresID=theform.form_adres;	var woonplaatsID=theform.form_woonplaats;	var telID=theform.form_telefoon;	var emailID=theform.form_email;	var msgID=theform.form_bericht;	var checkID=theform.form_check;		if ((nameID.value==null)||(nameID.value=="")){		alert("Vul aub uw naam in")		nameID.focus()		return false;	}
	if ((compID.value==null)||(compID.value=="")){		alert("Vul aub uw bedrijfsnaam in")		compID.focus()		return false;	}	if ((adresID.value==null)||(adresID.value=="")){		alert("Vul aub het adres van uw bedrijf in")		adresID.focus()		return false;	}	if ((woonplaatsID.value==null)||(woonplaatsID.value=="")){		alert("Vul aub de woonplaats van uw bedrijf in")		woonplaatsID.focus()		return false;	}	if ((telID.value==null)||(telID.value=="")){		alert("Vul aub uw telefoonnummer in")		telID.focus()		return false;	}	if ((emailID.value==null)||(emailID.value=="")){		alert("Vul aub uw e-mail adres in")		emailID.focus()		return false;	}	if (echeck(emailID.value)==false){		emailID.focus()		return false	}	if ((msgID.value==null)||(msgID.value=="")){		alert("Vul aub uw bericht in")		msgID.focus()		return false;	}	if ((checkID.value==null)||(checkID.value=="")){		alert("Vul aub de spam check in")		checkID.focus()		return false;	}	return true}
function validateEnquirie(theform){	var emailID=theform.email;	var emailName=theform.name;	var emailCheck=theform.secCheck;	
		if ((emailName.value==null)||(emailName.value=="")){		alert("Vul aub uw naam in")		emailName.focus();		return false;	}	if ((emailID.value==null)||(emailID.value=="")){		alert("Vul aub uw e-mail adres in")		emailID.focus()		return false	}	if (echeck(emailID.value)==false){		emailID.focus()		return false	}	if ((emailCheck.value==null)||(emailCheck.value=="")||(emailCheck.value!="ab23lu")){		alert("Vul aub uw de letters correct in")		emailCheck.focus();		return false;	}	return true}
function validate_workshop(theform){	var emailName=theform.subscribe_naam;	var emailID=theform.subscribe_email;	var emailCheck=theform.secCheck;	
		if ((emailName.value==null)||(emailName.value=="")){		alert("Vul aub uw naam in")		emailName.focus();		return false;	}	if ((emailID.value==null)||(emailID.value=="")){		alert("Vul aub uw e-mail adres in")		emailID.focus()		return false	}	if (echeck(emailID.value)==false){		emailID.focus()		return false	}	return true}

