function checkSubject() {
Subject=(document.contactform.Subject.value)
if (Subject.length==0){
alert("Please select a Subject.")
}
else (checkName())
}

function checkName() {
Name=(document.contactform.Name.value)
if (Name.length==0){
alert("Please enter your Name.")
}
else (checkTitle())
}

function checkTitle() {
Title=(document.contactform.Title.value)
if (Title.length==0){
alert("Please enter a Title.")
}
else (checkCompany())
}

function checkCompany() {
Company=(document.contactform.Company.value)
if (Company.length==0){
alert("Please enter a Company, Organization or Business.")
}
else (checkPhone())
}

function checkPhone() {
Phone=(document.contactform.Phone.value)
if (Phone.length==0){
alert("Please enter your Phone Number.")
}
else (checkCity())
}

function checkCity() {
City=(document.contactform.City.value)
if (City.length==0){
alert("Please enter a City.")
}
else (checkState())
}

function checkState() {
State=(document.contactform.State.value)
if (State.length==0){
alert("Please enter a State. Enter 'NA' if Not Applicable")
}
else (checkCountry())
}

function checkCountry() {
Country=(document.contactform.Country.value)
if (Country.length==0){
alert("Please enter a Country")
}
else (checkZip())
}

function checkZip() {
Zip=(document.contactform.Zip.value)
if (Zip.length==0){
alert("Please enter a Zip or Postal Code")
}
else (checkWebsite())
}

function checkWebsite() {
Website=(document.contactform.Website.value)
if (Website.length==0){
alert("Please enter a website address")
}
else (checkEmail())
}

function checkEmail() {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.contactform.Email.value)){
document.contactform.submit()
return (true)
}
alert("The email address entered appears to be invalid.  Please double check the spelling, or re-enter.")
return (false)
}
