function checkWholeForm(lit_req) {
    var why = "";
    why += checkEmail(lit_req.email.value);
    why += isEmpty1(lit_req.fname.value);
    why += isEmpty2(lit_req.lname.value);
    why += isEmpty3(lit_req.address1.value);
    why += isEmpty4(lit_req.city.value);
    why += isEmpty5(lit_req.state.value);
    why += isEmpty6(lit_req.country.value);
    why += isEmpty7(lit_req.zip.value);
    why += isEmpty8(lit_req.telephone.value);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}

//  First Name Check

function isEmpty1(strng) {
var error = "";
  if (strng.length == 0) {
     error = "You did not enter your First Name.\n"
  }
return error;     
}

// Last Name Check

function isEmpty2(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Last Name.\n"
  }
return error;     
}

// Address Check

function isEmpty3(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Address.\n"
  }
return error;     
}

// City Check

function isEmpty4(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your City.\n"
  }
return error;     
}

// State Check

function isEmpty5(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your State.\n"
  }
return error;     
}

// Country Check

function isEmpty6(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Country.\n"
  }
return error;     
}

// Zip Code Check

function isEmpty7(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter your Zip Code.\n"
  }
return error;     
}

// Telephone Check

function isEmpty8(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please provide a Telephone Number.\n"
  }
return error;     
}

// Email Check

function checkEmail (strng) {
var error="";
if (strng == "") {
   error = "Please enter an Email Address.\n";
}

    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(strng))) { 
       error = "Please enter a valid Email Address.\n";
    }
    else {
//test email for illegal characters
       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
         if (strng.match(illegalChars)) {
          error = "This is not a true Email Address.\n";
       }
    }
return error;    
}
