function Validate(theForm){
  //var invalDat="00/00/00";
  //var valDat="^([0-9]{2})/([0-9]{2})/([0-9]{4})$";
  //var invalTel=/[a-z|A-Z]/;
  var invalChars=/[\/\[\]@<>]/;
  var invalStrs="http|HTTP|www|WWW|viagra|VIAGRA";
  
  if (theForm.Name){
	  if (theForm.Name.value == "" || theForm.Name.value.search(invalChars)!=-1 || theForm.Name.value.search(invalStrs)!=-1 || theForm.Name.value.length<2){
		alert("Please enter your Name.");
		theForm.Name.select();
		return (false);
	  }
  }
  if (theForm.Email){
	  if (theForm.Email.value == ""){
		alert("Please enter a valid email address.");
		theForm.Email.select();
		return (false);
	  }
  }
  if (theForm.Comments){
	  if (theForm.Comments.value == "" || theForm.Comments.value.search(invalChars)!=-1 || theForm.Comments.value.search(invalStrs)!=-1 || theForm.Comments.value.length<6){
		alert("Please enter your comments without any html mark-up.");
		theForm.Comments.select();
		return (false);
	  }
  }
  if (theForm.DPN){
	  if (theForm.DPN.checked == false){
		alert("Please make sure that you read and agree to the terms in our Data Protection Notice.");
		theForm.DPNText.select();
		return (false);
	  }
  }
  if (theForm.Email){
  	return (emailCheck(theForm.Email.value)); 								//validate using routines in validemail.js
  }
  return (true);
}
