<!--
  function CheckCode( )
  {
  alert(document.entry.strCode.value.legnth());
    if( document.entry.strCode.value.legnth() != 10 ) 
    {
      alert("You must enter a complete 10-digit code.");
      return false;
    }
    return true;
  }


  function Check75th( )
  {
    if( document.entry.strFname.value == "" ) 
    {
      alert("You must enter your first name."); 
      return false;
    }
    if( document.entry.strLname.value == "" ) 
    {
      alert("You must enter your last name."); 
      return false;
    }
    if( document.entry.strAddress1.value == "" ) 
    {
      alert("You must enter your address."); 
      return false;
    }
    if( document.entry.strCity.value == "" ) 
    {
      alert("You must enter your city."); 
      return false;
    }
    if( document.entry.strState.value == "" ) 
    {
      alert("You must enter your state."); 
      return false;
    }    
    if( document.entry.strPhone.value == "" ) 
    {
      alert("You must enter your phone number."); 
      return false;
    }         
    if( document.entry.strZIP.value == "" ) 
    {
      alert("You must enter your ZIP/Postal code."); 
      return false;
    }
    if( document.entry.strEmail.value == "" || document.entry.strEmail.value.search("@") == -1  || document.entry.strEmail.value.indexOf(".") == -1 ) 
    {
      alert("You must enter a valid email address.");
      return false;
    }
    return true;
  }



  function getRadioValue( radio )
  {
   for (var i = 0; i < radio.length; i++)
    {   
      if (radio[i].checked) { break }
    }
    if( i == radio.length )
      return -1;
    else
      return radio[i].value;
  }
  


  function CheckSurvey( )
  {
    if( getRadioValue(document.survey.intQ01) == -1 ) 
    {
      alert("You must answer question #1.");
      return false;
    }
    if( getRadioValue(document.survey.intQ02) == -1 ) 
    {
      alert("You must answer question #2.");
      return false;
    }
    if( getRadioValue(document.survey.intQ03) == -1 ) 
    {
      alert("You must answer question #3.");
      return false;
    }        
    if( getRadioValue(document.survey.intQ04) == -1 ) 
    {
      alert("You must answer question #4.");
      return false;
    }        
    if( getRadioValue(document.survey.intQ05) == -1 ) 
    {
      alert("You must answer question #5.");
      return false;
    }
    if( getRadioValue(document.survey.intQ05) == 7  &&  document.survey.strQ05other.value == "" ) 
    {
      alert("You must specify your answer question #5.");
      return false;
    }    
    if( document.survey.strQ06.selectedIndex == 0 ) 
    {
      alert("You must answer question #6.");
      return false;
    }  
    if( getRadioValue(document.survey.intQ07) == -1 ) 
    {
      alert("You must answer question #7.");
      return false;
    }              
    if( getRadioValue(document.survey.intQ07) == 5  &&  document.survey.strQ07other.value == "" ) 
    {
      alert("You must specify your answer question #7.");
      return false;
    }           
    
    
  
    return true;
  }


// -->