function validateForm()
{
	fv = new formValidator();
	
	if (fv.isEmpty("Name"))
		fv.raiseError("Please specify your name.");
	
	if (fv.isEmpty("Email"))
		fv.raiseError("Please specify an email address.");
	else
	{
		if (!fv.isEmailAddress("Email"))
			fv.raiseError("Please specify a valid email address.");
	}
	
	if (fv.isEmpty("RepeatEmail"))
	{
		fv.raiseError("Please verify your e-mail address.");
	}
	else
	{
		if (fv.findObj("RepeatEmail").value != fv.findObj("Email").value)
			fv.raiseError("The email address and verified email address do not match. Please re-enter.");
	}
	
	/*
	
	if (fv.findObj("ArrivalDay").value == "Not Specified" ||
		fv.findObj("ArrivalMonth").value == "Not Specified" ||
		fv.findObj("ArrivalYear").value == "Not Specified" ||
		fv.findObj("DepartDay").value == "Not Specified" ||
		fv.findObj("DepartMonth").value == "Not Specified" ||
		fv.findObj("DepartYear").value == "Not Specified")
		fv.raiseError("Please specify the dates you wish to arrive and depart.");
		
	*/
	
	if (fv.isEmpty("NumberAdults"))
		fv.raiseError("Please enter the number of adults.");
		
	if (fv.isEmpty("code"))
		fv.raiseError("Please enter the code used for our spam checks.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}

function validateContact()
{
	fv = new formValidator();
	
	if (fv.isEmpty("Name"))
		fv.raiseError("Please specify your name.");
	
	if (fv.isEmpty("Email"))
		fv.raiseError("Please specify an email address.");
	else
	{
		if (!fv.isEmailAddress("Email"))
			fv.raiseError("Please specify a valid email address.");
	}
	
	if (fv.isEmpty("Questions"))
		fv.raiseError("Please enter a comment or any questions.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}
