<!--- =========== This script validates the form fields have been entered in the Contact Us form ========= --->
function aps_validateForm() {
  //alert("In Validate Form");
  //document.Contact.action="http://www.artpoststudios.com/SewBatik/ContactUs_Email.asp";
  //alert(document.Contact.action);
  var okSoFar=true;  //-- Changes to false when bad field found. 
  if (document.Contact.FirstName.value=='' && okSoFar) {
    okSoFar=false;
    alert ('Please enter your First Name');
    document.Contact.FirstName.focus();
    }
  if (document.Contact.LastName.value=='' && okSoFar) {
    okSoFar=false;
    alert ('Please enter your Last Name');
    document.Contact.LastName.focus();
    }
//  if (document.Contact.Company.value=='' && okSoFar) {
//    okSoFar=false
//    alert ('Please enter your Company Name')
//    document.Contact.Company.focus() 
//    }
//  if (document.Contact.Title.value=='' && okSoFar) {
//    okSoFar=false
//    alert ('Please enter your Title')
//    document.Contact.Title.focus() 
//    }
//  if (document.Contact.Address.value=='' && okSoFar) {
//    okSoFar=false
//    alert ('Please enter your company Address')
//    document.Contact.Address.focus() 
//    }
//  if (document.Contact.City.value=='' && okSoFar) {
//    okSoFar=false
//    alert ('Please enter your City')
//    document.Contact.City.focus() 
//    }
//  if (document.Contact.Zip.value=='' && okSoFar) {
//    okSoFar=false
//    alert ('Please enter your zip code')
//    document.Contact.Zip.focus() 
//    }
//  if (document.Contact.Telephone.value=='' && okSoFar) {
//    okSoFar=false
//    alert ('Please enter your Phone Number')
//    document.Contact.Telephone.focus() 
//    }
  if (document.Contact.Email.value=='' && okSoFar) {
    okSoFar=false;
    alert ('Please enter your Email Address');
    document.Contact.Email.focus(); 
    }
  if (okSoFar==true) {
  	//alert("SUBMITTING");
	//alert(okSoFar);
    document.Contact.submit();
    return true;}
  else {
    return false;}
}
