function validateForm(form) { 

if (form.Company.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your company name."); //Informs user of empty field
   form.Company.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.Address.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your address."); //Informs user of empty field
   form.Address.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.City.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your city."); //Informs user of empty field
   form.City.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.State.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your state."); //Informs user of empty field
   form.State.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.Zip.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your zip code."); //Informs user of empty field
   form.Zip.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.Country.value == "") { //This checks to make sure the field is not empty
   alert("Please select your country."); //Informs user of empty field
   form.Country.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.URL.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your company website address."); //Informs user of empty field
   form.URL.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.fname.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your full name."); //Informs user of empty field
   form.fname.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }

if (form.Title.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your title."); //Informs user of empty field
   form.Title.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
if (form.Telephone.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your telephone number."); //Informs user of empty field
   form.Telephone.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }

{
checkEmail = form.Email.value
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) 
{alert("You have entered an invalid email address. Please try again.");
form.Email.select();
return false;
}

} 








}






