// JavaScript Document
function validateForm()
{   
  var email = document.forms.eventform.elements.Email.value;  
  if(email.indexOf('@')<0){        alert('There must be an @ sign in your e-mail address');  
  
  return false;  
    }
 else if(email.indexOf('@') != email.lastIndexOf('@'))
{        
     alert('There can not be more than one @ sign in your e-mail address');
        return false;   
		 } 
else 

if(email.indexOf('.')<0)
{       
   alert('There must be at least one period in your e-mail address');  
         return false;    
		 }
 else if(email.lastIndexOf('.')<email.indexOf('@'))
 {        

alert('There must be at least one period following your @ sign in your e-mail address');        

return false;    
} 
   return true;
   }

function Validate(eventform)
{

if (eventform.Tname.value == "")
{
alert("Please enter a value for the \"Team Name\" field.");
eventform.Tname.focus();
return (false);
}


if (eventform.cname.value == "")
{
alert("Please enter a value for the \"Coach\" field.");
eventform.cname.focus();
return (false);
}

if (eventform.address.value == "")
{
alert("Please enter a value for the \"address\" field.");
eventform.address.focus();
return (false);
}
 

if (eventform.Receipt.value == "")
{
alert("Please enter the 19 digit value for the \"Receipt\" field.  If you do not have a receipt number please goto the top of the form and Press the PayPal Payments Button to pay the event entry fee.  You will then receive a Receipt number. If you have already done so, please check your e-mail for the message from Paypal containing the Receipt number.");
eventform.Receipt.focus();
return (false);
}
  
 
return (true);
}
 

