function validate_contact_form(that){

    //check for name
    if(that.namef != null && that.namef.value == ""){
        alert("Please enter your name");
        that.namef.focus();
        return false;
    }

    //check for phone_home
    if(that.phone_home != null && that.phone_home.value == ""  ){
        alert("A Phone number is required.");
        that.phone_home.focus();
        return false;
    }

    //check email
    if(that.email != null && that.email.value == ""){
        alert("Please enter a valid email address");
        that.email.focus();
        return false;
    }

return true;
}

