function contactCheck() {
var themessage = "You are required to complete the following fields: ";
if (document.contact.name.value=="") {
themessage = themessage + "\n * First Name";
}
if (document.contact.lastname.value=="") {
themessage = themessage + "\n * Last Name";
}
if (document.contact.email.value=="") {
themessage = themessage + "\n * Email";
}
if (document.contact.question.value=="") {
themessage = themessage + "\n * Question";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.contact.submit();
}

else {
alert(themessage);
return false;
   }
}
function infoCheck() {
var themessage = "You are required to complete the following fields: ";
if (document.webhosting.businessname.value=="") {
themessage = themessage + "\n * Business Name";
}
if(document.webhosting.firstname.value==""){
themessage = themessage + "\n * First Name";
}
if(document.webhosting.lastname.value==""){
themessage = themessage + "\n * Last Name";
}
if(document.webhosting.domainname.value==""){
themessage = themessage + "\n * Domain Name";
}
if(document.webhosting.domain_action.value==""){
themessage = themessage + "\n * Domain Registration";
}
if(document.webhosting.street.value==""){
themessage = themessage + "\n * Street Address";
}
if(document.webhosting.city.value==""){
themessage = themessage + "\n * City";
}
if(document.webhosting.state.value==""){
themessage = themessage + "\n * State";
}
if(document.webhosting.country.value==""){
themessage = themessage + "\n * Country";
}
if(document.webhosting.creditcard.value==""){
themessage = themessage + "\n * Credit Card Type";
}
if(document.webhosting.ccnumber.value==""){
themessage = themessage + "\n * Credit Card Number";
}
if(document.webhosting.exp_month.value==""){
themessage = themessage + "\n * Month of Expiration Date";
}
if(document.webhosting.exp_year.value==""){
themessage = themessage + "\n * Year of Expiration Date";
}
if(document.webhosting.phonenumber.value==""){
themessage = themessage + "\n * Phone Number";
}
if(document.webhosting.email.value==""){
themessage = themessage + "\n * Email";
}
if(document.webhosting.password.value==""){
themessage = themessage + "\n * Password";
}


//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.webhosting.submit();
}

else {
alert(themessage);
return false;
   }
}
