

function validateForm(form) 

{ 

   if (form.Name.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your full name."); //Informs user of empty field
   form.Name.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   

   if (form.Address1.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your address."); //Informs user of empty field
   form.Address1.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 enter 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.Email.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your email address."); //Informs user of empty field
   form.Email.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;
}

} 

}
