//// Email Validation Routines  //////////////

function checkForm()
{
var emailFilter=/^.+@.+\..{2,3}$/;
var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/

	if (document.Register.PlayerName.value=='')
	{
		//name is blank
		alert('Please enter the player\'s name');
		return false;
	}
	else if (document.Register.DOB.value=='')
	{
		//DOB is blank
		alert('Please enter the player\s DOB');
		return false;
	}
	else if (document.Register.Email.value=='')
	{
		//email is blank
		alert('Please enter your email address');
		return false;
	}
	else if (!(emailFilter.test(document.Register.Email.value)))
	{
		//email is invalid
		alert('The email address does not appear to be valid');
		return false;
	}
	else if (document.Register.Email.value.match(illegalChars))
	{
		//email contains illegal characters
		alert('The email address contains illegal characters');
		return false;
	}
	else if (document.Register.EmergencyName.value=='')
	{
		//EmergencyName is blank
		alert('Please enter the Emergency Contact Name');
		return false;
	}
	else if (document.Register.EmergencyPhone.value=='')
	{
		//EmergencyPhone is blank
		alert('Please enter the Emergency Phone Number');
		return false;
	}
	else if (document.Register.limitations.value=='')
	{
		//limitations (T/F) is blank
		alert('Please select Yes or No for limitations');
		return false;
	}
	// If the script gets this far through all of your fields
	// without problems, it's ok and you can submit the form

	return true;
}