function validateForm()
{
	fv = new formValidator();
	
	if (fv.isEmpty("realname"))
		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("repeat_email"))
	{
		fv.raiseError("Please verify your e-mail address.");
	}
	else
	{
		if (fv.findObj("repeat_email").value != fv.findObj("email").value)
			fv.raiseError("The email address and verified email address do not match. Please re-enter.");
	}
	
	if (fv.isEmpty("country"))
		fv.raiseError("Please specify your country of residence.");
	
	
	/*
	
	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("pax"))
		fv.raiseError("Please enter the number of people travelling.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}


function validateCarRental()
{
	fv = new formValidator();
	
	if (fv.isEmpty("realname"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("country"))
		fv.raiseError("Please specify your country of residence.");
		
	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("repeat_email"))
	{
		fv.raiseError("Please verify your e-mail address.");
	}
	else
	{
		if (fv.findObj("repeat_email").value != fv.findObj("email").value)
			fv.raiseError("The email address and verified email address do not match. Please re-enter.");
	}
	
	if (fv.isEmpty("phone"))
		fv.raiseError("Please specify your phone number.");
	
	if (fv.findObj("arrivalday").value == "Not Specified" ||
		fv.findObj("arrivalmonth").value == "Not Specified" ||
		fv.findObj("arrivalyear").value == "Not Specified" ||
		fv.findObj("departureday").value == "Not Specified" ||
		fv.findObj("departuremonth").value == "Not Specified" ||
		fv.findObj("departureyear").value == "Not Specified")
		fv.raiseError("Please specify the dates you wish to arrive and depart.");	
	
	if (fv.isEmpty("pax"))
		fv.raiseError("Please enter the number of people travelling.");
	
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}

function validateContactForm()
{
	fv = new formValidator();
	
	if (fv.isEmpty("realname"))
		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("comments"))
		fv.raiseError("Please specify a comment / question.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}

function validateTailorMake()
{
	fv = new formValidator();
	
	
	if (fv.isEmpty("realname"))
		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("phone"))
		fv.raiseError("Please specify your phone number.");
		
	if (fv.findObj("arrivalday").value == "Not Specified" ||
		fv.findObj("arrivalmonth").value == "Not Specified" ||
		fv.findObj("arrivalyear").value == "Not Specified" ||
		fv.findObj("departureday").value == "Not Specified" ||
		fv.findObj("departuremonth").value == "Not Specified" ||
		fv.findObj("departureyear").value == "Not Specified")
		fv.raiseError("Please specify the dates you wish to arrive and depart.");	
	
	if (fv.isEmpty("pax"))
		fv.raiseError("Please enter the number of people travelling.");
	
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}

function validateTour()
{
    fv = new formValidator();
	
	if (fv.isEmpty("realname"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("country"))
		fv.raiseError("Please specify your country of residence.");
	
	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("phone"))
		fv.raiseError("Please specify your phone number.");
		
	if (fv.findObj("arrivalday").value == "Not Specified" ||
		fv.findObj("arrivalmonth").value == "Not Specified" ||
		fv.findObj("arrivalyear").value == "Not Specified" ||
		fv.findObj("departureday").value == "Not Specified" ||
		fv.findObj("departuremonth").value == "Not Specified" ||
		fv.findObj("departureyear").value == "Not Specified")
		fv.raiseError("Please specify the dates you wish to arrive and depart.");	
	
	if (fv.isEmpty("pax"))
		fv.raiseError("Please enter the number of people travelling.");
	
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}