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

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


	if (document.Sponsor.TeamName.value=='')
	{
		//Team Name is blank
		alert('Please enter the team\'s name that you wish to sponsor');
		return false;
	}
	else if (document.Sponsor.CoachName.value=='')
	{
		//Coach Name is blank
		alert('Please enter the coach\'s name of the team you wish to sponsor');
		return false;
	}
	else if (document.Sponsor.Division.value=='')
	{
		//Division is blank
		alert('Please enter the age division of the team you wish to sponsor');
		return false;
	}
	else if (document.Sponsor.Company.value=='')
	{
		//Company is blank
		alert('Please enter your company name');
		return false;
	}
	else if (document.Sponsor.Contact.value=='')
	{
		//Contact is blank
		alert('Please enter your name (or the name of the person we should contact)');
		return false;
	}
	else if (document.Sponsor.Phone.value=='')
	{
		//Phone is blank
		alert('Please enter a phone number for the contact person');
		return false;
	}
	else if (document.Sponsor.Email.value=='')
	{
		//email is blank
		alert('Please enter your email address');
		return false;
	}
	else if (!(emailFilter.test(document.Sponsor.Email.value)))
	{
		//email is invalid
		alert('The email address does not appear to be valid');
		return false;
	}
	else if (document.Sponsor.Email.value.match(illegalChars))
	{
		//email contains illegal characters
		alert('The email address contains illegal characters');
		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;
}