﻿
function validate() {
if (document.apply.FName.value == "") {
 alert("Please enter a first name")
 window.document.apply.FName.focus()
 return
}
if (document.apply.LName.value == "") {
 alert("Please enter a last name")
 window.document.apply.LName.focus()
 return
}
if (document.apply.Address.value == "") {
 alert("Please enter a home address")
 window.document.apply.Address.focus()
 return
}
if (document.apply.City.value == "") {
 alert("Please enter a city/province")
 window.document.apply.City.focus()
 return
}
if (document.apply.State.value == "") {
 alert("Please enter a State/U.S. military")
 window.document.apply.State.focus()
 return
}
if (document.apply.ZipCode.value == "") {
 alert("Please enter a home address")
 window.document.apply.ZipCode.focus()
 return
}
if (document.apply.Email.value == "") {
 alert("Please enter a Email address")
 window.document.apply.Email.focus()
 return
}
// radio button check
if (!document.apply.ContactYN[0].checked && !document.apply.ContactYN[1].checked) {
 alert("Please indicate if you wish to be contacted be email")
 window.document.apply.ContactYN[0].focus()
 return
}
if (document.apply.HomePhone.value == "") {
 alert("Please enter a home phone number")
 window.document.apply.HomePhone.focus()
 return
}
if (document.apply.DOB.value == "") {
 alert("Please enter a date of birth")
 window.document.apply.DOB.focus()
 return
}
if (document.apply.DOB.value == "") {
 alert("Please enter a date of birth")
 window.document.apply.DOB.focus()
 return
}
// radio button check
if (!document.apply.Gender[0].checked && !document.apply.Gender[1].checked) {
 alert("Please select a gender")
 window.document.apply.Gender[0].focus()
 return
}
window.document.apply.submit()
}
