
function validateForm( )
{
	var objFV = new FormValidator("frmContact");

	if (!objFV.validate("txtFirstName", "B", "Please enter your First Name."))
		return false;		
		
	if (!objFV.validate("txtSurName", "B", "Please enter your Sur Name."))
		return false;
		
	if (!objFV.validate("txtAddress", "B", "Please enter Address."))
		return false;		
		
	if (!objFV.validate("txtAddress2", "B", "Please enter Address 2."))
		return false;		
		
	if (!objFV.validate("txtTown", "B", "Please enter Town / City."))
		return false;		

	if (!objFV.validate("txtCounty", "B", "Please enter County."))
		return false;		

	if (!objFV.validate("txtPostcode", "B", "Please enter Postcode."))
		return false;		
		
	if (!objFV.validate("txtContactName", "B", "Please enter your Preferred Contact Name."))
		return false;		

	if (!objFV.validate("txtEmail", "B,E", "Please enter your valid Email."))
		return false;

	if (!objFV.validate("txtEmail2", "B,E", "Please enter a valid Email address into both email boxes."))
		return false;
	
	window['_v'] = document.getElementById("txtEmail").value;
	window['_e'] = document.getElementById("txtEmail2").value;
	
	if ((window['_v']!=window['_e']))
		{
		alert("There seems to a be an error: Please check your email address and try again")
		return false;
		}

	if (!objFV.validate("security_code", "B", "Please enter Security code."))
		return false;		

}