function check_form(theform)
{

if (theform.firstname.value=="")
{
	alert("- Please supply a Firstname.\n");
	theform.firstname.focus();
	return (false);
}

if (theform.surname.value=="")
{
	alert("- Please supply a Surname.\n");
	theform.surname.focus();
	return (false);
}


if (theform.ad1.value=="")
{
	alert("- Please enter the first line of the address.\n");
	theform.surname.focus();
	return (false);
}


if (theform.city.value=="")
{
	alert("- Please enter a city.\n");
	theform.surname.focus();
	return (false);
}


if (theform.postcode.value=="")
{
	alert("- Please supply a postcode.\n");
	theform.surname.focus();
	return (false);
}

	full_name = theform.firstname.value + ' ' + theform.surname.value;
	var confirmStr = "Register Player with these details?\n\nName: " + full_name + "\n" + "Dob: " + theform.Dob.value + "\n" +"Address Line 1: " + theform.ad1.value + "\n" +"Addrees Line 2: " + theform.ad2.value + "\n" +"City: " + theform.city.value + "\n" +"Postcode: " + theform.postcode.value + "\n";

	if (confirm(confirmStr))
	{
		return true;
	}
	else
	{
		return false;
	}


}
