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("FunctionDay").value == "Not Specified" ||
		fv.findObj("FunctionMonth").value == "Not Specified" ||
		fv.findObj("FunctionYear").value == "Not Specified")
		fv.raiseError("Please specify a function date.");
		
	*/
	
	if (fv.isEmpty("NumberDelegates"))
		fv.raiseError("Please enter the number of persons attending.");
		
	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;
}