<!--
function validateEnquiries()
{
	fv = new formValidator();
	
	if (fv.isEmpty("realname"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("email"))
		fv.raiseError("Please specify your email address.");
	else
	{
		if (!fv.isEmailAddress("email"))
			fv.raiseError("Please specify a valid email address.");
	}
		
	if (fv.isEmpty("RepeatEmail"))
	{
		fv.raiseError("Please repeat your email address for verification.");
	}
	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.isEmpty("Telephone"))
		fv.raiseError("Please specify your telephone number.");
		
	if (fv.isEmpty("Mobile"))
		fv.raiseError("Please specify your mobile number.");
	
	if (fv.isEmpty("Country"))
		fv.raiseError("Please specify your country of residence.");

	if (fv.findObj("StartDay").value == "Not Specified" ||
		fv.findObj("StartMonth").value == "Not Specified" ||
		fv.findObj("StartYear").value == "Not Specified" ||
		fv.findObj("EndDay").value == "Not Specified" ||
		fv.findObj("EndMonth").value == "Not Specified" ||
		fv.findObj("EndYear").value == "Not Specified")
		fv.raiseError("Please specify the pick up and drop off dates.");

	if (fv.isEmpty("NumberDays"))
		fv.raiseError("Please confirm the total number of rental days.");
		
	if (fv.isEmpty("PickUp"))
		fv.raiseError("Please specify the city where you will pick up the vehicle.");
		
	if (fv.isEmpty("DropOff"))
		fv.raiseError("Please specify the city where you will drop off the vehicle.");
		
	if (fv.findObj("CarType").value == "Not Specified")
		fv.raiseError("Please specify the vehicle you would like to rent.");	
		
	if (fv.isEmpty("NumberPassengers"))
		fv.raiseError("Please confirm the total number of passengers.");
		
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}

-->
