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("code"))
		fv.raiseError("Please enter the code used for our spam checks.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
		return true;
}
