// Validate the info on the Contact Us form

function ChkForm() {
   var chkCount = 0;
   var f = document.contactfrm;
   var msg = "";
 
   if (f.name.value == "") {
      chkCount = chkCount + 1;
	  msg = "Name";
   }
   if (f.company.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "Company";
	  } else {
	    msg = msg + ", Company";
	  }
   }
   if (f.street1.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "Street Address";
	  } else {
	    msg = msg + ", Street Address";
	  }
   }
   if (f.city.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "City";
	  } else {
	    msg = msg + ", City";
	  }
   }
   if (f.state.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "State";
	  } else {
	    msg = msg + ", State";
	  }   
   }
   if (f.zip.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "Zip Code";
	  } else {
	    msg = msg + ", Zip Code";
	  }
   }
   if (f.phone.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "Phone";
	  } else {
	    msg = msg + ", Phone";
	  } 
   }

   if (f.email.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "E-mail";
	  } else {
	    msg = msg + ", E-mail";
	  }
   }
   
   if (f.info_request.value == "") {
      chkCount = chkCount + 1;
	  if (msg =="") {
	     msg = "Details of Your Inquiry";
	  } else {
	    msg = msg + ", Details of Your Inquiry";
	  }
   }
   
  
   
   if (chkCount == 0) {
      return true;
   } else {
      alert ("Must enter all required fields: " + msg);
      return false;
   }
   
  }