document.write('<img src="images/header_about_on.gif" alt="About Iridology" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_supplements_on.gif" alt="Supplements" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_services_on.gif" alt="Services" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_contact_on.gif" alt="Contact" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_links_on.gif" alt="Links" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_supplements_on1.gif" alt="Supplements" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_services_on1.gif" alt="Services" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_contact_on1.gif" alt="Contact" title="" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_links_on1.gif" alt="Links" height="1" width="1">');
document.write('<img src="images/header_about_on2.gif" alt="About Iridology" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_supplements_on2.gif" alt="Supplements" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_services_on2.gif" alt="Services" height="1" width="1" class="hiddenPic">');
document.write('<img src="images/header_contact_on2.gif" alt="Contact" height="1" width="1" class="hiddenPic">');

function checkForm2() {
 //document.form.email.value = " " + document.form.email.value;
 //document.form.fullname.value = " " + document.form.fullname.value;
 //document.form.phone.value = " " + document.form.phone.value;
 
 //var trimmed = str.replace(/^\s+|\s+$/g, '') ;
 
  mail = document.form.Contact0Email.value.replace(/^\s+|\s+$/g, '');
  firstname = document.form.Contact0FirstName.value;
  lastname = document.form.Contact0LastName.value;
  phone = document.form.Contact0Phone1.value;
  
  //alert(fullname.length);
  if (firstname.length < 1) {
	  alert('Please fill in your first name.');
	  return false;
  }
  else if (lastname.length < 1) {
	  alert('Please fill in your last name.');
	  return false;
  }
  else if (mail.length < 1) {
	  alert('Please enter a valid e-mail address.');
	  return false;
  }
  else if (phone.length < 1) {
	  alert('Please fill in your phone number.');
	  return false;
  }
  
  // this part of the script is
  if ((mail.indexOf('@') == -1) || (mail.indexOf('.') == -1) || mail.length < 5) {
      alert('Your e-mail address is invalid.'); return false; } // related to the E-Mail field
      
      
  return true;
 }
