function checkWholeForm(quickcontact) {
    var why = "";
    why += checkEmail(quickcontact.Email.value);
    why += isEmpty1(quickcontact.Name.value);
    why += isEmpty2(quickcontact.Title.value);    
    why += isEmpty3(quickcontact.Company.value);
    why += isEmpty4(quickcontact.Address1.value);
    why += isEmpty5(quickcontact.City.value);
    why += isEmpty6(quickcontact.State.value);
    why += isEmpty7(quickcontact.Zip.value);
    why += isEmpty8(quickcontact.Country.value);
    why += isEmpty9(quickcontact.Phone.value);
    why += isEmpty10(quickcontact.Fax.value);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}

// Name Check

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

// Title Check

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

// Company Check

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

// Address1 Check

function isEmpty4(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please provide an Address.\n"
  }
return error;     
}

// City Check

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

// State Check

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

// Zip Check

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

// Country Check

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

// Phone Check

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

// Fax Check

function isEmpty10(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please enter a valid Fax Number.\n"
  }
return error;     
}

// email

function checkEmail (strng) {
var error="";
if (strng == "") {
   error = "Please enter a 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;    
}
