/** * 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_1(theform){
	var nameID=theform.form_naam;	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 ((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 ValidateForm(theform){
	var nameID=theform.form_naam;//	var adresID=theform.form_adres;//	var pcID=theform.form_postcode;//	var woonplaatsID=theform.form_woonplaats;//	var telID=theform.form_telefoon;	var emailID=theform.form_email;	var checkID=theform.form_check;		if ((nameID.value==null)||(nameID.value=="")){		alert("Vul aub uw naam in")		nameID.focus()		return false;	}
/*
	if ((adresID.value==null)||(adresID.value=="")){		alert("Vul aub uw adres in")		adresID.focus()		return false;	}	if ((pcID.value==null)||(pcID.value=="")){		alert("Vul aub uw postcode in")		pcID.focus()		return false;	}	if ((woonplaatsID.value==null)||(woonplaatsID.value=="")){		alert("Vul aub uw woonplaats 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 ((checkID.value==null)||(checkID.value=="")){		alert("Vul aub de spam check in")		checkID.focus()		return false;	}	return true}
