function validate() {
  if (window.document.contact.cname.value == "") {
    alert("Enter your Contact Name First.");
    window.document.contact.cname.focus();
    return false;
  }
  
    if (window.document.contact.bname.value == "") {
    alert("Enter your Business Name First.");
    window.document.contact.bname.focus();
    return false;
  }
  
  if (window.document.contact.baddress.value == "") {
    alert("Enter your Business Address First.");
    window.document.contact.baddress.focus();
    return false;
  }
  
  if (window.document.contact.city.value == "") {
    alert("Enter your City First.");
    window.document.contact.city.focus();
    return false;
  }
  
  if (window.document.contact.state.value == "") {
    alert("Enter your State First.");
    window.document.contact.state.focus();
    return false;
  }
  
  if (window.document.contact.zipcode.value == "") {
    alert("Enter your Zip Code First.");
    window.document.contact.zipcode.focus();
    return false;
  }
  
  if (window.document.contact.phone_day.value == "") {
    alert("Enter your Phone(Day) First.");
    window.document.contact.phone_day.focus();
    return false;
  }
  
  if (window.document.contact.phone_cell.value == "") {
    alert("Enter your Phone(Cell) First.");
    window.document.contact.phone_cell.focus();
    return false;
  }
 
   var theEmail = window.document.contact.email.value;
  var emailRegexp = new RegExp("^[A-Za-z0-9]([-A-Za-z0-9._+]+[-A-Za-z0-9_+]+)*\@[-A-Za-z0-9][-A-Za-z0-9.]*[.][A-Za-z]{2,4}$");

  if (!emailRegexp.test(theEmail)) {
    alert("The email address you entered is invalid\n" + "Try again.");
window.document.contact.email.value="";    
    window.document.contact.email.focus();
return false;
}

}
