function validateregister(theForm)
{

	if (theForm.yourname.value == "")
	{
	alert("Please enter your name.");
	theForm.yourname.focus();
	return (false);
	}
	
	if (theForm.postcode.value == "")
	{
	alert("Please enter your postcode.");
	theForm.postcode.focus();
	return (false);
	}
	
	if (theForm.email.value == "")
	{
	alert("Please enter your email address.");
	theForm.email.focus();
	return (false);
	}
	
	if (theForm.age.value == "")
	{
	alert("Please enter your age.");
	theForm.age.focus();
	return (false);
	}
	
	if (theForm.password.value == "")
	{
	alert("Please enter a password.");
	theForm.password.focus();
	return (false);
	}
	
	if (theForm.confpassword.value == "")
	{
	alert("Please conform your password.");
	theForm.confpassword.focus();
	return (false);
	}
	
	if (theForm.confpassword.value != theForm.password.value)
	{
	alert("Passwords dont match.");
	theForm.confpassword.focus();
	return (false);
	}
	
}