//Form Validation

function validate()
{
var strverify="";
if ((document.register.QTYA.value!="1") && (document.register.QTYB.value!="1"))
{
alert("Please verify the ORDER NOW section. You must enter 1 in the quantity for the tournament you wish to play.");
return false;
}
if (document.register.QTYA.value=="1" && document.register.QTYB.value=="1")
{
alert("Please verify in the ORDER NOW section the values entered in the quantity.\nYou can register for only one tournament (A or B).");
return false;
}
strverify = document.register.PlayerName.value;
if (strverify.length==0)
{
alert("You must fill in the player's name information. Please enter the player's first and lastname.");
return false;
}
strverify = document.register.USCFId.value;
if (strverify.length==0)
{
alert("You must indicate a valid USCF ID to proceed. Please enter the USCF ID number or 0 if you don't have a number. If you are not a USCF member, you will need the USCF membership before the tournament starts.");
return false;
}
strverify = document.register.ExpirationDate.value;
if (strverify.length==0)
{
alert("You must enter the expiration date to proceed. Please enter the USCF expiration date.");
return false;
}
strverify = document.register.Rating.value;
if (strverify.length==0)
{
alert("You must enter your current USCF rating to proceed. Please enter your current USCF rating or the rating from the last list. IT DOES NOT NEED TO BE EXACT!");
return false;
}
if (document.register.Section.value == "0")
{
alert("You must enter the section you will be playing in to proceed. Please select the section from the list.");
return false;
}
if (document.register.Schedule.value == "0")
{
alert("You must enter the schedule you would like to play to proceed. Please select the schedule from the list (3-days or 2-days).");
return false;
}
strverify = document.register.CardHolderName.value;
if (strverify.length==0)
{
alert("You must fill in the card holder name to proceed. Please enter the name of the card holder.");
return false;
}
return true;
}
