
function validateForm( )
{
	var objFV = new FormValidator("frmRegister");
	
	if (!objFV.validate("txtFirstName", "B", "Please enter your First Name."))
		return false;		
		
	if (!objFV.validate("txtLastName", "B", "Please enter your Last Name."))
		return false;		
		
	if (!objFV.validate("txtAddress1", "B", "Please enter the Address."))
		return false;
	
	if (!objFV.validate("txtCity", "B", "Please enter your City."))
		return false;
		
	if (!objFV.validate("txtZipCode", "B", "Please enter your Zip Code/Post Code."))
		return false;		
		
	if (!objFV.validate("ddCountry", "B", "Please select your Country."))
		return false;
		
	if (!objFV.validate("txtPhone", "B", "Please enter your Phone Number."))
		return false;				
	
	if (!objFV.validate("txtEmail", "B,E", "Please enter your valid Email Address."))
		return false;
		
	if (!objFV.validate("txtConfirmEmail", "B,E", "Please enter your valid Confirm Email Address."))
		return false;
		
	if (objFV.value("txtEmail") != objFV.value("txtConfirmEmail"))
	{
		alert("The Email does not MATCH with the Confirm Email.");

		objFV.focus("txtConfirmEmail");
		objFV.select("txtConfirmEmail");

		return false;
	}		
		
	if (!objFV.validate("txtPassword", "B,L(4)", "Please enter the valid Password (Min Length = 4)."))
		return false;
		
	if (!objFV.validate("txtConfirmPassword", "B,L(4)", "Please enter the valid Confirm Password (Min Length = 4)."))
		return false;		

	if (objFV.value("txtPassword") != objFV.value("txtConfirmPassword"))
	{
		alert("The Password does not MATCH with the Confirm Password.");

		objFV.focus("txtConfirmPassword");
		objFV.select("txtConfirmPassword");

		return false;
	}
	
	if (!objFV.validate("txtSpamCode", "B,L(5)", "Please enter the valid Spam Protection Code as shown."))
		return false;

	return true;
}
