 var frmvalidator = new Validator("form3");
 
 frmvalidator.addValidation("txtForenames","req","Please enter your First Name");
 frmvalidator.addValidation("txtForenames","regexp=^[A-Za-z0-9'` \w]*$","Please enter your First Name");

 frmvalidator.addValidation("txtSurname","req","Please enter your Last Name");
 frmvalidator.addValidation("txtSurname","regexp=^[A-Za-z0-9'` \w]*$","Please enter your Last Name");

 frmvalidator.addValidation("txtHometelno","regexp=^(([A-Za-z-*.# ]*[0-9]){10,11}[A-Za-z-*.# ]*)?$","Please ensure you've entered a correct Phone Number");
 frmvalidator.addValidation("txtMobiletelno","regexp=^(([A-Za-z-*.# ]*[0-9]){11}[A-Za-z-*.# ]*)?$","Please ensure you've entered a correct Mobile Number (11 numbers)");

 frmvalidator.addValidation("txtEmail","regexp=^((.+)@(.+))*$","Please enter your E-Mail Address");

 frmvalidator.addValidation("cboWhenCall","dontselect=0","Please enter the time you would like us to call");

 frmvalidator.setAddnlValidationFunction("DoCustomValidation");


	function DoCustomValidation()
	{
		var frm = document.forms["form3"];

		if(	(eval(frm.txtHometelno.value.length) == 0) && (eval(frm.txtMobiletelno.value.length) == 0)	)
		{
			alert('You must enter either a Phone Number or a Mobile Number!');
			frm.txtHometelno.focus()
			return false;
		}

		//Check the checkbox
		if (eval(frm.chkPrivacyPolicy.checked) != true)
		{
			alert('Sorry but our privacy policy must be read and accepted before we can help you');
			frm.chkPrivacyPolicy.focus()
			return false;
		}

		return true;
	}


