   <!--alert('starting JAVASCRIPT...'); -->
   <!-- Costs for all items  -->				<!-- reset at new season -->
   var setRegFee 				= 203;			<!-- change screen costs too!! -->
   var setRegFeeWithDiscount	= 183;
   var setRegFeeWithDiscountBig	= 163;
   var setRegFeeWithDiscountBOD	= 95;
   var setRegFeeWithDiscount50	= 101;
   var setUniformFee 			= 130; 			<!-- includes discount -->
   var setJerseyFee				= 55;
   var setPantsFee				= 30;
   var setHatFee				= 15;
   var setSocksFee				= 5;
   var setBeltFee				= 5;
   var setCountyFee				= 30;          <!--  now for NON-County Fee!!!! -->
   var setLateFee				= 25;
   
   var setRegFeeText 			= '$203';
   var setRegFeeWithDisText		= '$183';
   var setRegFeeWithDisBigText	= '$163';
   var setRegFeeWithDisBODText	= '$95';
   var setRegFeeWithDis50Text	= '$101';
   var setUniformFeeText		= '$130';		<!-- includes discount -->  
   var setJerseyFeeText			= '$55';
   var setPantsFeeText			= '$30';
   var setHatFeeText			= '$15';
   var setSocksFeeText			= '$5';
   var setBeltFeeText			= '$5';
   var setCountyFeeText			= '$30';
   var setLateFeeText			= '$25';

   
   
   <!-- Set other variables -->
   var txtPlayerStatus = '';
   var txtFullUniform;
   var ReturnFalse;
   
   var YearBorn = 0;
   
   var vCost1 = 0;
   var vCost2 = 0;
   var vCost3 = 0;
   var vCost4 = 0;
   var vCost5 = 0;
   var vCost6 = 0;
   var vCost7 = 0;
   var vCost8 = 0;
   var vSubTotal = 0;
   var vCountyFee = 0;
   var vLateFee = 0;
   var vGrandTotal = 0;
   var Today = new Date;
   var EarlyDate = new Date(2006,07,02);		<!-- really is Aug 1 or earlier! -->
   var LateDate = new Date(2010,7,02);			<!-- think it really is later than 3/15 -->

   
   <!--alert('finished setting variables')-->
   
function displayRegFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayRegFee'); -->
   if (theForm.RegistrationFee.checked == true)
   {
   theForm.Cost1.value = setRegFeeText;
   vCost1 = setRegFee;
   <!-- Call early/late fees function -->
   calcEarlyLateFees(theForm)
   <!-- Call group code logic function -->
   calcGroupCode(theForm)
}
   else
   {
   theForm.Cost1.value = '$0';
   vCost1 = 0;
   vCountyFee = 0;
   theForm.CountyFee.value = '$0';
   vLateFee = 0;
   theForm.LateFee.value = '$0';
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }
   
   
function displayUniformFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayUniformFee'); -->
   if (theForm.FullUniform.checked == true)
   {
   theForm.Cost2.value = setUniformFeeText;
   vCost2 = setUniformFee;
   }
   else
   {
   <!-- Reset Totals -->
   theForm.Cost2.value = '$0';
   vCost2 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }
   
   
   
   function displayJerseyHomeFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayJerseyHomeFee'); -->

   if (theForm.JerseyHome.checked == true) 
   { 
   vCost3 = setJerseyFee;
   theForm.Cost3.value = setJerseyFeeText;
   }
   else
   {
   theForm.Cost3.value = '$0';
   vCost3 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }
   
   
   

function displayJerseyAwayFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayJerseyAwayFee'); -->
   if (theForm.JerseyAway.checked == true) 
   { 
   <!-- alert('Add jersey away fee'); -->
   vCost4 = setJerseyFee;
   theForm.Cost4.value = setJerseyFeeText;
   }
   else
   {
   theForm.Cost4.value = '$0';
   vCost4 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }




function displayPantsFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayPantsFee'); -->
   if (theForm.Pants.checked == true) 
   { 
   <!-- alert('Add pants fee'); -->
   vCost5 = setPantsFee;
   theForm.Cost5.value = setPantsFeeText;
   }
   else
   {
   theForm.Cost5.value = '$0';
   vCost5 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }






   
function displayHatFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayHatFee'); -->
   if (theForm.Hat.checked == true) 
   { 
   <!-- alert('Add Hat fee'); -->
   vCost6 = setHatFee;
   theForm.Cost6.value = setHatFeeText;
   }
   else
   {
   theForm.Cost6.value = '$0';
   vCost6 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }







function displaySocksFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displaySocksFee'); -->
   if (theForm.Socks.checked == true) 
   { 
   <!-- alert('Add socks fee'); -->
   vCost7 = setSocksFee;
   theForm.Cost7.value = setSocksFeeText;
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   }
   else
   {
   theForm.Cost7.value = '$0';
   vCost7 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }







   
function displayBeltFee(theForm)  {
   <!-- alert('startingJAVASCRIPT displayBeltFee'); -->
   if (theForm.Belt.checked == true) 
   { 
   <!-- alert('Add Belt fee'); -->
   vCost8 = setBeltFee;
   theForm.Cost8.value = setBeltFeeText;
   }
   else
   {
   theForm.Cost8.value = '$0';
   vCost8 = 0;
   }
   vSubTotal = vCost1 + vCost2 + vCost3 + vCost4 + vCost5 + vCost6 + vCost7 + vCost8;
   theForm.SubTotal.value = '$' + vSubTotal;
   vGrandTotal = vSubTotal + vCountyFee + vLateFee;
   theForm.GrandTotal.value = '$' + vGrandTotal;
   }

   
function calcEarlyLateFees(theForm)  {

   /* <!-- alert('startingJAVASCRIPT calcEarlyLateFees'); -->
   <!-- if (Today <= EarlyDate)                        -->
   <!-- {                                              --> 
   <!-- alert('Early!');                               -->
   <!--vEarlyReg = setEarlyReg;                        -->
   <!--theForm.EarlyReg.value = setEarlyRegText;       -->
   <!--}                                               -->   
   <!--else                                            -->
   <!--{                                               --> 
   <!--vEarlyReg = 0;                                  -->
   <!--theForm.EarlyReg.value = '$0';                  -->
   <!-- }                                              -->
   */ 

   
   <!-- alert(theForm.County.selectedIndex); -->

   if (theForm.County.selectedIndex !== 1 &&
       theForm.County.selectedIndex !== 2)
   {
    vCountyFee = setCountyFee;
    theForm.CountyFee.value = setCountyFeeText;
   }
   else
   {
    vCountyFee = 0;
    theForm.CountyFee.value = '$0';
   }
 

  <!-- waive County fee for VLL -->

   if (theForm.GroupCode.value == 'VLLxxxxx')
   {
      vCountyFee = 0;
    theForm.CountyFee.value = '$0';
   }
       
     <!-- waive County fee for Ponce -->

   if (theForm.GroupCode.value == 'PONCExxxxx')
   {
      vCountyFee = 0;
    theForm.CountyFee.value = '$0';
   }
      
         
         
         
   <!-- set LateFee -->
   if (Today > LateDate && theForm.GroupCode.value !== 'xxxx')
   { 
   <!--alert('Late!'); -->
   vLateFee = setLateFee;
   theForm.LateFee.value = setLateFeeText;
   }
   else
   {
   vLateFee = 0;
   theForm.LateFee.value = '$0';
   }
   
   
   <!-- wave the late fee! -->
   if (theForm.GroupCode.value == 'WAVE')
   {
   vLateFee = 0;
   theForm.LateFee.value = '$0';
   }

   if (theForm.GroupCode.value == 'WAIVE')
   {
   vLateFee = 0;
   theForm.LateFee.value = '$0';
   }

   if (theForm.GroupCode.value == 'CRAIGSLIST')
   {
   vLateFee = 0;
   theForm.LateFee.value = '$0';
   }

     if (theForm.GroupCode.value == 'xxxFIRE')
   {
   vLateFee = 0;
   theForm.LateFee.value = '$0';
   }

   }
   
   
   
   
   
   
   
   <!-------------------------------------------------------- ADD DISCOUNT GROUP CODES HERE (10%)!!!! ----------------->
   
      
   
 function calcGroupCode(theForm)  {
   <!-- alert('startingJAVASCRIPT calcGroupCode'); -->
   
   if (theForm.GroupCode.value == 'VPC')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
      
   if (theForm.GroupCode.value == 'NATSxxxxx')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
   
   if (theForm.GroupCode.value == 'PWCCHURCH')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
   
   if (theForm.GroupCode.value == 'CHURCH')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

   if (theForm.GroupCode.value == 'WLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
   
   if (theForm.GroupCode.value == 'LSLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
   
   if (theForm.GroupCode.value == 'LLLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

   if (theForm.GroupCode.value == 'CLLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

   if (theForm.GroupCode.value == 'GDLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

   if (theForm.GroupCode.value == 'COLES')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

    if (theForm.GroupCode.value == 'LOUDOUN')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
  
    if (theForm.GroupCode.value == 'DLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
 
     if (theForm.GroupCode.value == 'DCLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
 
   if (theForm.GroupCode.value == 'DTQLL')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
 
   if (theForm.GroupCode.value == 'BUDMANxxxxxxx')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }
 
   if (theForm.GroupCode.value == 'MANAGER')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

  if (theForm.GroupCode.value == 'ERICO')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

  if (theForm.GroupCode.value == 'TEN')
   {
   theForm.Cost1.value = setRegFeeWithDisText;
   vCost1 = setRegFeeWithDiscount;
   }

     
     <!-- COPY ABOVE 5 LINES !!!! -->

 
 
 
   <!-- ADD ------BIG---------------------------------------------- DISCOUNT GROUP CODES HERE (20%) !!!! -->
   
   
   
   if (theForm.GroupCode.value == 'POLICE')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
    
   if (theForm.GroupCode.value == 'FIRE')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
 

   if (theForm.GroupCode.value == 'BOTH')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
  
   if (theForm.GroupCode.value == 'VLLxxx')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
  
 
   if (theForm.GroupCode.value == 'GARFIELD')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
   
  
/* if (theForm.DesiredTeam.value == 'Rays')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }

    if (theForm.DesiredTeam.value == '19+')
   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
*/  
   if ((theForm.GroupCode.value == 'CRAIGSLIST') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
   
   if ((theForm.GroupCode.value == 'RIGGS') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
   
   if ((theForm.GroupCode.value == 'TWENTY') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDisBigText;
   vCost1 = setRegFeeWithDiscountBig;
   }
   

  

    <!-- COPY ABOVE 5 LINES !!!! -->
  
   
   
   
   /*
   <!-- ADD ------Board of Directors level-------------------------------- DISCOUNT GROUP CODES HERE ($95) !!!! -->

   if (theForm.GroupCode.value == 'BOD')
   {
   theForm.Cost1.value = setRegFeeWithDisBODText;
   vCost1 = setRegFeeWithDiscountBOD;
   }  */
   
   
   
   
   if ((theForm.GroupCode.value == 'xxxFIRE'))

   {
   theForm.Cost1.value = setRegFeeWithDisBODText;
   vCost1 = setRegFeeWithDiscountBOD;
   }
   
   
     <!-- ADD ------------------------------------------------------- 50% DISCOUNT GROUP CODES HERE (50%) !!!! -->
 
   if ((theForm.GroupCode.value == 'ASSIST'))

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }
   
   if ((theForm.GroupCode.value == 'xxxPAUL') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }
  
   if ((theForm.GroupCode.value == 'VLL') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }
   
   if ((theForm.GroupCode.value == 'PONCE') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }

   if ((theForm.GroupCode.value == 'VBC') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }

   if ((theForm.GroupCode.value == 'FIFTY') && (txtPlayerStatus == 'new'))

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }

    if (theForm.GroupCode.value == 'FIREMEN')

   {
   theForm.Cost1.value = setRegFeeWithDis50Text;
   vCost1 = setRegFeeWithDiscount50;
   }
 
  
  
  
   
   }



  
   
   
function FurtherTesting(theForm) {


  var radioSelected = false;
  for (i = 0;  i < theForm.PlayerStatus.length;  i++)
  {
    if (theForm.PlayerStatus[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Player Status\" options.");
    return (false);
  }


/*
  var radioSelected = false;
  for (i = 0;  i < theForm.ChooseLeague.length;  i++)
  {
    if (theForm.ChooseLeague[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"League Choice\" options.");
    return (false);
  }
*/
  
  
  
  
  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.FirstName.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.HomePhone.value == "")
  {
    alert("Please enter a value for the \"Home Phone\" field.");
    theForm.HomePhone.focus();
    return (false);
  }

  if (theForm.HomePhone.value.length < 6)
  {
    alert("Please enter at least 6 characters in the \"Home Phone\" field.");
    theForm.HomePhone.focus();
    return (false);
  }

  if (theForm.StreetName1.value == "")
  {
    alert("Please enter a value for the \"Street\" field.");
    theForm.StreetName1.focus();
    return (false);
  }

  if (theForm.StreetName1.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Street\" field.");
    theForm.StreetName1.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.State.value == "")
  {
    alert("Please enter a value for the \"State\" field.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.State.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"State\" field.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.State.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"State\" field.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.ZipCode.value == "")
  {
    alert("Please enter a value for the \"Zip Code\" field.");
    theForm.ZipCode.focus();
    return (false);
  }

  if (theForm.ZipCode.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip Code\" field.");
    theForm.ZipCode.focus();
    return (false);
  }

  if (theForm.EmailAddress.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.EmailAddress.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"Email Address\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.NewEmail.selectedIndex == 0)
  {
    alert("Please tell us if this is a new email for Legends.");
    theForm.NewEmail.focus();
    return (false);
  }



  if (theForm.County.selectedIndex == 0)
  {
    alert("Please select one of the \"County\" options.");
    theForm.County.focus();
    return (false);
  }





  if (theForm.BirthMonth.value == "")
  {
    alert("Please enter a value for the \"Birth Month\" field.");
    theForm.BirthMonth.focus();
    return (false);
  }

  if (theForm.BirthMonth.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Birth Month\" field.");
    theForm.BirthMonth.focus();
    return (false);
  }

  if (theForm.BirthMonth.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Birth Month\" field.");
    theForm.BirthMonth.focus();
    return (false);
  }

  var chkVal = theForm.BirthMonth.value;
  var prsVal = chkVal;
  if (chkVal != "" && !(chkVal >= 1 && chkVal <= 12))
  {
    alert("Please enter a valid \"Birth Month\" between 1 and 12.");
    theForm.BirthMonth.focus();
    return (false);
  }

  if (theForm.BirthDay.value == "")
  {
    alert("Please enter a value for the \"Birth Day\" field.");
    theForm.BirthDay.focus();
    return (false);
  }

  if (theForm.BirthDay.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Birth Day\" field.");
    theForm.BirthDay.focus();
    return (false);
  }

  if (theForm.BirthDay.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Birth Day\" field.");
    theForm.BirthDay.focus();
    return (false);
  }

  var chkVal = theForm.BirthDay.value;
  var prsVal = chkVal;
  if (chkVal != "" && !(chkVal >= 1 && chkVal <= 31))
  {
    alert("Please enter a valid \"Birth Day\" between 1 and 31.");
    theForm.BirthDay.focus();
    return (false);
  }

  if (theForm.BirthYear.value == "")
  {
    alert("Please enter a value for the \"Birth Year\" field.");
    theForm.BirthYear.focus();
    return (false);
  }

  if (theForm.BirthYear.value.length < 2)
  {
    alert("Please enter 2 characters in the \"Birth Year\" field.");
    theForm.BirthYear.focus();
    return (false);
  }

  var chkVal = theForm.BirthYear.value;
  var prsVal = chkVal;
  if (chkVal != "" && !(prsVal >= "40" && prsVal <= "99"))
  {
    alert("Please enter a valid birth year");
    theForm.BirthYear.focus();
    return (false);
  }

/* Check for minimum age of 19 - ***************** Change every year!!! ***************************/

   if (chkVal >= "92")
   { 
   alert('Sorry, the minumum age for Legends is 19');
   return false;
   }
   
   YearBorn = chkVal;

   <!-- Test for 19 year old NOT registering for 19+ Division-->
   
   <!-- CHANGE YearBorn EVERY YEAR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
   <!-- alert ('yearborn = ' + YearBorn); -->
   <!-- alert ('reg fee = ' + theForm.RegistrationFee.checked); -->
   
   if ((YearBorn >= 80) && 
   (theForm.DesiredTeam.value !== "DadTeam") && 
   (theForm.DesiredTeam.value !== "BlackSox") && 
   (theForm.DesiredTeam.value !== "19+") && 
   (theForm.DesiredTeam.value !== "FireFighters") && 
   (theForm.DesiredTeam.value !== "Hurricanes") && 
   (theForm.RegistrationFee.checked == true))
   { 
   alert('19-29 year olds MUST play in 19 plus Division!');
   theForm.DesiredTeam.focus();
   return false;
   }






  if (theForm.PositionChoice1.selectedIndex == 0)
  {
    alert("Please select one of the \"Position Choice #1\" options.");
    theForm.PositionChoice1.focus();
    return (false);
  }

  if (theForm.EarlyHistory.selectedIndex == 0)
  {
    alert("Please select one of the \"Early History\" options.");
    theForm.EarlyHistory.focus();
    return (false);
  }

  if (theForm.RecentHistory.selectedIndex == 0)
  {
    alert("Please select one of the \"Recent History\" options.");
    theForm.RecentHistory.focus();
    return (false);
  }

  if (theForm.RateYourself.selectedIndex == 0)
  {
    alert("Please select one of the \"Rate Yourself\" options.");
    theForm.RateYourself.focus();
    return (false);
  }

  if (theForm.HeardAboutUs.selectedIndex == 0)
  {
    alert("Please select one of the \"How did you hear about us\" options.");
    theForm.HeardAboutUs.focus();
    return (false);
  }

  if (theForm.DesiredTeam.selectedIndex == 0)
  {
    alert("Please select one of the \"Desired Team\" options.");
    theForm.DesiredTeam.focus();
    return (false);
  }




   <!-- alerts for testing --> 
   <!-- txtPlayerStatus = theForm.PlayerStatus; -->
   <!-- txtFullUniform = theForm.FullUniform; -->
   <!-- alert('date = ' + Today); -->
   <!-- alert(theForm.NewPlayer.value); -->
   <!-- alert('earlydate = ' + EarlyDate); -->
   <!-- alert('latedate = ' + LateDate); -->
   <!-- alert(ReturnFalse); -->
   
  
   <!-- Test for new player and no uniform selected-->
   <!--alert('txtPlayerStatus = ' + txtPlayerStatus);-->
   if ((theForm.FullUniform.checked == false) && (txtPlayerStatus == 'new'))
   { 
   alert('A new player must order a full uniform');
   return false;
   }
 
   <!-- Test for new player and no registration box selected-->
   <!--alert('txtPlayerStatus = ' + txtPlayerStatus);-->
   if ((txtPlayerStatus == 'new') && (theForm.RegistrationFee.checked == false))
   { 
   alert('A new player must select registration fee!');
   return false;
   }


     
   <!-- check Jersey Size -->
   if ((theForm.FullUniform.checked == true) && (theForm.JerseySize.value == 'n/a'))
   { 
   alert('Please enter Jersey Size!');
   return false;
   }

   <!-- check Pants Size -->
   if ((theForm.FullUniform.checked == true) && (theForm.PantsSize.value == 'n/a'))
   { 
   alert('Please enter Pants Size!');
   return false;
   }
    
   <!-- check Replacement Jersey - Home Size -->
   if ((theForm.JerseyHome.checked == true) && (theForm.ReplacementJerseySize.value == 'n/a'))
   { 
   alert('Please enter Replacement Jersey-Home Size!');
   return false;
   }

   <!-- check Replacement Jersey - Away Size -->
   if ((theForm.JerseyAway.checked == true) && (theForm.Replacement2JerseySize.value == 'n/a'))
   { 
   alert('Please enter Replacement Jersey-Away Size!');
   return false;
   }
   
   <!-- check Replacement Pants Size -->
   if ((theForm.Pants.checked == true) && (theForm.ReplacementPantsSize.value == 'n/a'))
   { 
   alert('Please enter Replacement Pants Size!');
   return false;
   }
   
     <!-- check if nothing ordered-->
   if (vGrandTotal == 0)
   { 
   alert('You have not selected any items.  Please select your desired order!');
   return false;
   }

     <!-- check Waiver Box -->
   if (theForm.Waiver.checked == false)
   { 
   alert('The waiver box must be checked to confirm agreement with waiver/release form!');
   return false;
   }

   var answer = confirm("All edits complete! Press OK to proceed to the payments process, or Cancel to return to the form.")
   if (answer) 
   {
   return true; 
   }
   else
   {
   return false;
   }
      
   }
