function Form_Validator(theForm) {

	if (theForm.name.value == "")
	{
		alert("Please enter a value for the Contact Name field.");
		theForm.name.focus();
		return (false);
	}

	if (theForm.institutename.value == "")
	{
		alert("Please enter a value for the Institute Name field.");
		theForm.institutename.focus();
		return (false);
	}

	if (theForm.instituteaddress.value == "")
	{
		alert("Please enter a value for the address field.");
		theForm.instituteaddress.focus();
		return (false);
	}

	if (theForm.postcode.value == "")
	{
		alert("Please enter a value for the postcode field.");
		theForm.postcode.focus();
		return (false);
	}

	if (theForm.telephone.value == "")
	{
		alert("Please enter a value for the telephone field.");
		theForm.telephone.focus();
		return (false);
	}

	
	if (theForm.email.value == "")
	{
		alert("Please enter a value for the email address field.");
		theForm.email.focus();
		return (false);
	}
	

	if (emailCheck(theForm.email))
	{ }
	else
	{
		return (false);
	}

	if (theForm.studentpasswordchoice.value == "")
	{
		alert("Please enter a value for the student password field.");
		theForm.studentpasswordchoice.focus();
		return (false);
	}

	if (theForm.studentpasswordcheck.value == "")
	{
		alert("Please re-enter your student password.");
		theForm.studentpasswordcheck.focus();
		return (false);
	}

	if (theForm.studentpasswordcheck.value != theForm.studentpasswordchoice.value)
	{
		alert("Your student passwords do not match!");
		theForm.studentpasswordcheck.focus();
		return (false);
	}

	if (theForm.adminpasswordchoice.value == "")
	{
		alert("Please enter a value for the admin password field.");
		theForm.adminpasswordchoice.focus();
		return (false);
	}

	if (theForm.adminpasswordcheck.value == "")
	{
		alert("Please re-enter your admin password.");
		theForm.adminpasswordcheck.focus();
		return (false);
	}

	if (theForm.adminpasswordcheck.value != theForm.adminpasswordchoice.value)
	{
		alert("Your admin passwords do not match!");
		theForm.adminpasswordcheck.focus();
		return (false);
	}


}