// This section handles the form validation for the "How To Get Started" page. //
function validate()
{
  submitOK="True"
  at=start.email.value.indexOf("@")
  if(start.first_name.value=="") {
    alert("The 'First Name' field is blank.\n\nPlease enter your first name.");
    start.first_name.focus();
    submitOK="False"
  }
  else if (start.last_name.value=="") {
    alert("The 'Last Name' field is blank.\n\nPlease enter your last name.");
    start.last_name.focus();
    submitOK="False"
  }
  else if (start.address.value=="") {
    alert("The 'Address' field is blank.\n\nPlease enter your street address.");
    start.address.focus();
    submitOK="False"
  }
  else if (start.city.value=="") {
    alert("The 'City' field is blank.\n\nPlease enter the name of your city.");
    start.city.focus();
    submitOK="False"
  }
  else if (start.state.value=="") {
    alert("The 'state' field is blank.\n\nPlease enter the state you live in.");
    start.state.focus();
    submitOK="False"
  }
  else if (start.zip_code.value=="") {
    alert("The 'Zip' field is blank.\n\nPlease enter your zip code.");
    start.zip_code.focus();
    submitOK="False"
  }
  else if (start.main_phone.value=="") {
    alert("The 'Phone Number' field is blank.\n\nPlease enter your phone number.");
    start.main_phone.focus();
    submitOK="False"
  }
  else if (start.alt_phone.value=="") {
    alert("The 'Alternate Number' field is blank.\n\nPlease enter an alternate number \n (or 'none' if you don't have one).");
    start.alt_phone.focus();
    submitOK="False"
  }
  else if (start.email.value=="") {
    alert("The 'Email Address' field is blank.\n\nPlease enter your email address.");
    start.email.focus();
    submitOK="False"
  }
  else if (at==-1) {
    alert("The email address you entered is not a valid address.\n\nPlease enter a valid email address.");
    start.email.focus();
    submitOK="False"
  }
  if (submitOK=="False")
  {
    return false
  }
}

// This handles the image roll-overs for the left nav. //
function onProd()
{
document.prod.src = "images/products-on.jpg"
}
function onAge()
{
document.age.src = "images/why-we-age-on.jpg"
}
function onSym()
{
document.sym.src = "images/symptoms-on.jpg"
}
function onAnd()
{
document.and.src = "images/andropause-on.jpg"
}
function onMeno()
{
document.meno.src = "images/menopause-on.jpg"
}
function onNHR()
{
document.nhr.src = "images/natural-hormone-replacement-on.jpg"
}
function onGH()
{
document.gh.src = "images/growth-hormone-on.jpg"
}
function onStart()
{
document.start.src = "images/how-to-get-started-on.jpg"
}
function onPR()
{
document.pr.src = "images/patient-responsibilities-on.jpg"
}
function onArt()
{
document.art.src = "images/articles-on.jpg"
}
function onQA()
{
document.qa.src = "images/q-a-on.jpg"
}
function onContact()
{
document.contact.src = "images/contact-us-on.jpg"
}
function onHome()
{
document.home.src = "images/home-on.jpg"
}

// RESETS ALL THE IMAGES //
function onReset()
{
document.prod.src = "images/products.jpg"
document.age.src = "images/why-we-age.jpg"
document.sym.src = "images/symptoms.jpg"
document.and.src = "images/andropause.jpg"
document.meno.src = "images/menopause.jpg"
document.nhr.src = "images/natural-hormone-replacement.jpg"
document.gh.src = "images/growth-hormone.jpg"
document.start.src = "images/how-to-get-started.jpg"
document.pr.src = "images/patient-responsibilities.jpg"
document.art.src = "images/articles.jpg"
document.qa.src = "images/q-a.jpg"
document.contact.src = "images/contact-us.jpg"
document.home.src = "images/home.jpg"
}
