/** * 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("Invalid e-mail adress")		   return false		}		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){		   alert("Invalid e-mail adress")		   return false		}		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){		    alert("Invalid e-mail adress")		    return false		}		 if (str.indexOf(at,(lat+1))!=-1){		    alert("Invalid e-mail adress")		    return false		 }		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){		    alert("Invalid e-mail adress")		    return false		 }		 if (str.indexOf(dot,(lat+2))==-1){		    alert("Invalid e-mail adress")		    return false		 }				 if (str.indexOf(" ")!=-1){		    alert("Invalid e-mail adress")		    return false		 } 		 return true					}function ValidateSubscribeForm(theform){	var emailID=theform.e_mail;	if ((emailID.value==null)||(emailID.value=="")){		alert("Please enter your e-mail address")		emailID.focus()		return false;	}	if (echeck(emailID.value)==false){		emailID.focus()		return false	}}function ValidateInfoForm(theform){	var nameID=theform.infoform_first_naam;	var emailID=theform.infoform_email;	var form_msg_id=theform.form_bericht;	var form_check=theform.form_check;		if ((nameID.value==null)||(nameID.value=="")){		alert("Please enter your full name")		nameID.focus()		return false;	}	if ((emailID.value==null)||(emailID.value=="")){		alert("Please enter your e-mail address")		emailID.focus()		return false;	}	if (echeck(emailID.value)==false){		emailID.focus()		return false	}	if ((form_msg_id.value==null)||(form_msg_id.value=="")){		alert("Please enter your comment/question")		form_msg_id.focus()		return false;	}	if ((form_check.value==null)||(form_check.value=="")){		alert("Please enter the spam check")		form_check.focus()		return false;	}	return true}function ValidatePressForm(theform){	var nameID=theform.pressform_naam;	var company_id=theform.pressform_company;	var phone_id=theform.pressform_phone;	var emailID=theform.pressform_email;	var agreedID=theform.pressform_condition;
	var form_check=theform.form_check;
			if ((nameID.value==null)||(nameID.value=="")){		alert("Please enter your name")		nameID.focus()		return false;	}	if ((company_id.value==null)||(company_id.value=="")){		alert("Please enter your company")		company_id.focus()		return false;	}	if ((emailID.value==null)||(emailID.value=="")){		alert("Please enter your e-mail address")		emailID.focus()		return false;	}	if (echeck(emailID.value)==false){		emailID.focus()		return false	}	if ((phone_id.value==null)||(phone_id.value=="")){		alert("Please enter your phone")		phone_id.focus()		return false;	}    if (agreedID.checked==false) {        alert ( "Please check the Terms & Conditions box." );		return false;    }	if ((form_check.value==null)||(form_check.value=="")){		alert("Please enter the spam check")		form_check.focus()		return false;	}    return true}