﻿function validateForm(){

    if (document.forms["tshirt"].first_name.value == "") {
        alert("Please fill in your first name.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].first_name.focus()
        return false
    }

    if (document.forms["tshirt"].last_name.value == "") {
        alert("Please fill in your last name.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].last_name.focus()
        return false
    }

    if (document.forms["tshirt"].company.value == "") {
        alert("Please fill in your company.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].company.focus()
        return false
    }

    if (document.forms["tshirt"].street.value == "") {
        alert("Please fill in your mailing address.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].street.focus()
        return false
    }

    if (document.forms["tshirt"].city.value == "") {
        alert("Please fill in your city.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].city.focus()
        return false
    }

    if (document.forms["tshirt"].state.value == "" && document.forms["tshirt"].sp_other.value == "") {
        alert("Please fill in your state or province.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].state.focus()
        return false
    }

    if (document.forms["tshirt"].zip.value == "") {
        alert("Please fill in your zip or postal code.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].zip.focus()
        return false
    }

    if (document.forms["tshirt"].industry.value == "") {
        alert("Please select your industry.\n\nNOTE: ALL FIELDS ARE REQUIRED")
        document.forms["tshirt"].industry.focus()
        return false
    }


}