function doForm(theForm) {
  if (theForm.company.value == "") {
   alert("Please fill in your Company Name.");
   return (false);
  }

 if (theForm.username.value == "") {
  alert("Please enter your User Name for logging in.");
  return (false);
 }

 if (theForm.tax.value == "") {
    alert("Please enter your Tax Number.");
		return (false);
 }

 if (theForm.email.value == "") {
   alert("Please enter a value for the Email Address field.");
   return (false);
 }

  if (theForm.fname.value == "" || theForm.lname.value == "") {
   alert("Please enter a First and Last name for the Contact.");
   return (false);
  }

 if (theForm.address1.value == "") {
   alert("Please enter your Address.");
   return (false);
 }
 if (theForm.city.value == "" || theForm.state.value=="" || theForm.zip.value=="") {
  alert("Please enter your City, State, and Zip Code.");
   return (false);
 }
 if (theForm.telephone.value == "") {
  alert("Please enter your Company Telephone Number.");
  return (false);
 }
 var mail1 = theForm.email.value;
 var mail2 = theForm.email2.value;
 if (mail1 != mail2) {
  alert("The email verification did not match. Please make sure you are typing the correct address.");
  theForm.email2.value = "";
  return (false);
 }
  return (true);
}

