function chkF(field,alerttxt,reject){
	with (field) {
		if (value==null||value==""||value==reject){
			alert(alerttxt);
			return false
		} else { return true }
	}
}

function chkE(field,alerttxt){
	with (field){
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
			  {alert(alerttxt);return false}
		else {return true}
	}
}

function check(thisForm) {
	with (thisForm){
		if (chkE(email,"Please enter your Email address")==false){
			email.focus();
			return false
		}
		
		if (chkF(player1, "Please enter the name of player 1", "asd")==false){
			player1.focus();
			return false
		}
		
		if (chkF(player2,"Please enter the name of player 2", "asd")==false){
			player2.focus();
			return false
		}
		
		if (chkF(first, "Please enter your 1st Choice Tee Time", "asd")==false){
			first.focus();
			return false
		}
	}
}

function players(thisForm) {
	with (thisForm){
		if (chkF(player1, "Please enter the name of player 1", "asd")==false){
			player1.focus();
			return false
		}
		
		if (chkF(player2,"Please enter the name of player 2", "asd")==false){
			player2.focus();
			return false
		}
	}
}

function checkEm(thisForm) {
	with (thisForm){
		if (chkE(email,"Please enter your Email address")==false){
			email.focus();
			return false
		}
	}
}