////////////////////////
// Validation Routines
///////////////////////



function validate_appointment(theForm)
{	
  if (theForm.lead_firstname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.lead_firstname.focus();
    return (false);
  }

  if (theForm.lead_lastname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lead_lastname.focus();
    return (false);
  }
  
    if (theForm.lead_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.lead_email.focus();
    return (false);
  }
  
  return (true);
}

function validate_askthedoctor(theForm)
{	
  if (theForm.lead_firstname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.lead_firstname.focus();
    return (false);
  }

  if (theForm.lead_lastname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lead_lastname.focus();
    return (false);
  }
  
    if (theForm.lead_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.lead_email.focus();
    return (false);
  }
  
  return (true);
}

function validate_freeconsultation(theForm)
{	
  if (theForm.lead_firstname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.lead_firstname.focus();
    return (false);
  }

  if (theForm.lead_lastname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lead_lastname.focus();
    return (false);
  }
  
    if (theForm.lead_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.lead_email.focus();
    return (false);
  }
  
  return (true);
}

function validate_freereports(theForm)
{	
  if (theForm.lead_firstname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.lead_firstname.focus();
    return (false);
  }

  if (theForm.lead_lastname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lead_lastname.focus();
    return (false);
  }
  
    if (theForm.lead_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.lead_email.focus();
    return (false);
  }
  
  return (true);
}

function validate_contactus(theForm)
{	
  if (theForm.lead_firstname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.lead_firstname.focus();
    return (false);
  }

  if (theForm.lead_lastname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lead_lastname.focus();
    return (false);
  }
  
    if (theForm.lead_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.lead_email.focus();
    return (false);
  }
  
  return (true);
}

