<!--Hide


function validEmail(email) {       				 //VALIDATION OF FORM
	invalidChars = " /:,;"

	if (email == "") {							// Must be filled in
		return false
	}
	for (i=0; i<invalidChars.length; i++) {		// Check to see if it contains illegal characters
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0)> -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)				// There must be one "@" symbol
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {		// And only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {						// And at least one "." after the "@"
		return false
	}
	if (periodPos+3> email.length)	{			// Must be at least 2 characters after the "."
		return false
	}
	

return true;	

}


function valform(form){

whatQuantity = form.quantity.selectedIndex;
   
    

      if (form.Full_Name1.value == "") {
            alert("Please enter your full name.  Thank you.");
            form.Full_Name1.focus();
            return false;
            }
            
                
      if (form.City1.value == "") {
            alert("Please enter your City.  Thank you.");
            form.City1.focus();
            return false;
            }
         
          
      
      if (form.State1.value == "") {
	    alert("Please enter your State or Province.  Thank you.");
	    form.State1.focus();
	    return false;
            }
            
            
      if (!validEmail(form.email.value)) {
            alert("Please enter a valid e-mail address.  Thank you.");
            form.email.focus();
             return false;
             
	    }
	    
    if (form.email.value != form.email1.value)  {
    	    alert("Your e-mail address or confirm e-mail address appears to be incorrect.  Thank you.");
    	    form.email.focus();
    	    return false;
    	    }
	    
	    
            
         
     else if (form.quantity.options[whatQuantity].value == "")    {
     	    alert("Please indicate how many people will be registering. Thank you.");
     	    form.quantity.focus()
     	    return false;
     	    }            
     
              
         details = ("Click on the CANCEL button if you would like to review your Registration Info one last time.\n\nClick on the OK button if your wish to submit your registration info now.");
     	
	
     	  if (!confirm(details)) {
     	  
     	  return false;
     	  form.Full_Name1.focus();
     	  
     	  }
     	  
     	  else {
     	  
     	  alert("We are now sending you to your STEP 2 to make your payment. Please follow STEP 2 instructions to complete your registration. Thank you.");
	      
	  return true;
	  
	  }
	        
	
	        
	}
	
       
  
  
//End Hide-->

