function checkInput(PickTeam) {
var strikers = new Array(PickTeam.P1nr.value,PickTeam.P2nr.value,PickTeam.P3nr.value,PickTeam.P4nr.value,PickTeam.P5nr.value,PickTeam.P6nr.value,PickTeam.P7nr.value,PickTeam.P8nr.value)
var numBers=/^\d+$/
var y = 0
if (PickTeam.TeamNr.value.length != 4) {
    alert("Team Number must be 4 digits. Please try again");
    PickTeam.TeamNr.focus();
    return false;
}
if (numBers.test(PickTeam.TeamNr.value) != true){
    alert("Team Number contains invalid characters. Please try again");
    PickTeam.TeamNr.focus();
    return false;
}
if (PickTeam.TeamNr.value.charAt(0) < 5){
    alert("Team Number is invalid. Please try again");
    PickTeam.TeamNr.focus();
    return false;
}
if (PickTeam.Password.value == "") {
    alert("You must enter your Password. Please try again");
    PickTeam.Password.focus();
    return false;
}
for (y=1;y<=7;y++) {
		if(strikers[0] == strikers[y] && strikers[0].length > 2) {
				y = y+ 1;
				alert("Striker 1 is the same as striker "+y);
	  		PickTeam.P1nr.focus();
				return false;
		}
}
for (y=2;y<=7;y++) {
		if(strikers[1] == strikers[y] && strikers[1].length > 2) {
				y = y+ 1;
				alert("Striker 2 is the same as striker "+y);
	  		PickTeam.P2nr.focus();
				return false;
		}
}
for (y=3;y<=7;y++) {
		if(strikers[2] == strikers[y] && strikers[2].length > 2) {
				y = y+ 1;
				alert("Striker 3 is the same as striker "+y);
	  		PickTeam.P3nr.focus();
				return false;
		}
}
for (y=4;y<=7;y++) {
		if(strikers[3] == strikers[y] && strikers[3].length > 2) {
				y = y+ 1;
				alert("Striker 4 is the same as striker "+y);
	  		PickTeam.P4nr.focus();
				return false;
		}
}
for (y=5;y<=7;y++) {
		if(strikers[4] == strikers[y] && strikers[4].length > 2) {
				y = y+ 1;
				alert("Striker 5 is the same as striker "+y);
	  		PickTeam.P5nr.focus();
				return false;
		}
}
for (y=6;y<=7;y++) {
		if(strikers[5] == strikers[y] && strikers[5].length > 2) {
				y = y+ 1;
				alert("Striker 6 is the same as striker "+y);
	  		PickTeam.P6nr.focus();
				return false;
		}
}
if (strikers[6] == strikers[7] && strikers[6].length > 2) {
	 alert("Striker 7 is the same as striker 8");
	 PickTeam.P7nr.focus();
	 return false;
} }
function confTeam(TeamConfirm) {
if (TeamConfirm.P1nr.value.charAt(0) == "t" && TeamConfirm.p1Name.value == "") {
	  alert("You must WRITE IN a name for striker 1 when you choose a club");
	  TeamConfirm.p1Name.focus();
		return false;
}
if (TeamConfirm.P2nr.value.charAt(0) == "t" && TeamConfirm.p2Name.value == "") {
	  alert("You must WRITE IN a name for striker 2 when you choose a club");
	  TeamConfirm.p2Name.focus();
		return false;
}
if (TeamConfirm.P3nr.value.charAt(0) == "t" && TeamConfirm.p3Name.value == "") {
	  alert("You must WRITE IN a name for striker 3 when you choose a club");
	  TeamConfirm.p3Name.focus();
		return false;
}
if (TeamConfirm.P4nr.value.charAt(0) == "t" && TeamConfirm.p4Name.value == "") {
	  alert("You must WRITE IN a name for striker 4 when you choose a club");
	  TeamConfirm.p4Name.focus();
		return false;
}
if (TeamConfirm.P5nr.value.charAt(0) == "t" && TeamConfirm.p5Name.value == "") {
	  alert("You must WRITE IN a name for striker 5 when you choose a club");
	  TeamConfirm.p5Name.focus();
		return false;
}
if (TeamConfirm.P6nr.value.charAt(0) == "t" && TeamConfirm.p6Name.value == "") {
	  alert("You must WRITE IN a name for striker 6 when you choose a club");
	  TeamConfirm.p6Name.focus();
		return false;
}
if (TeamConfirm.P7nr.value.charAt(0) == "t" && TeamConfirm.p7Name.value == "") {
	  alert("You must WRITE IN a name for striker 7 when you choose a club");
	  TeamConfirm.p7Name.focus();
		return false;
}
if (TeamConfirm.P8nr.value.charAt(0) == "t" && TeamConfirm.p8Name.value == "") {
	  alert("You must WRITE IN a name for striker 8 when you choose a club");
	  TeamConfirm.p8Name.focus();
		return false;
} }