
/*******************************************************************/
/*  validate Form -                                                */
/*******************************************************************/
function valForm()
{  
      
    if ( document.getElementById("_db_first").value.length  == 0 ) {
       alert ("First Name is required!") ;
       document.getElementById("_db_first").focus() ;
       return false ;
    }
    
    if ( document.getElementById("_db_last").value.length  == 0 ) {
       alert ("Last Name is required!") ;
       document.getElementById("_db_last").focus() ;
       return false ;
    }

    if ( document.getElementById("_db_address1").value.length  == 0 ) {
       alert ("Address Name is required!") ;
       document.getElementById("_db_address1").focus() ;
       return false ;
    }

    if ( document.getElementById("_db_city").value.length  == 0 ) {
       alert ("City is required!") ;
       document.getElementById("_db_city").focus() ;
       return false ;
    }

    if ( document.getElementById("_db_state").value  == "St" ) {
       alert ("Please select a State!") ;
       document.getElementById("_db_state").focus() ;
       return false ;
    }    
    
    if ( document.getElementById("_db_zipCode").value.length  < 5 ) {
       alert ("Zip Code is invalid or blank!") ;
       document.getElementById("_db_zipCode").focus() ;
       return false ;
    }
    if ( document.getElementById("_db_phone").value.length  == 0 ) {
       alert ("Phone Number is required!") ;
       document.getElementById("_db_phone").focus() ;
       return false ;
    }

    if ( document.getElementById("_db_bestContact").value.length  == 0 ) {
       alert ("Best Time to Contact is required!") ;
       document.getElementById("_db_bestContact").focus() ;
       return false ;
    }       
    
    return true ;
  
}

