<!--
function doc_valid_text(mustbe, prefer) {

  t="";
  if (mustbe == "" || mustbe == "-")
  {
    if (prefer == "M")
    {
      t = t + "You have indicated that you would prefer a male doctor.<br><br>We will make the most appropriate choice based on this preference, and on an initial analysis of your case.";
    }
    else if (prefer == "F")
    {
      t = t + "You have indicated that you would prefer a female doctor.<br><br>We will make the most appropriate choice based on this preference, and on an initial analysis of your case.";
    }
    else if (prefer == "DC")
    {
      t = t + "You have indicated that you would prefer a Doctor of Chiropractic (DC).<br><br>We will make the most appropriate choice based on this preference, and on an initial analysis of your case.";
    }
    else if (prefer == "MD")
    {
      t = t + "You have indicated that you would prefer a Medical Doctor (MD).<br><br>We will make the most appropriate choice based on this preference, and on an initial analysis of your case.";
    }
    else if (prefer == "ND")
    {
      t = t + "You have indicated that you would prefer a Naturopathic Doctor (ND).<br><br>We will make the most appropriate choice based on this preference, and on an initial analysis of your case.";
    }
    else if (prefer == "1")
    {
      t = t + "You have indicated that you would prefer Dr. Michelle Johnson, ND.<br><br>That should not be a problem.";
    }
    else if (prefer == "3")
    {
      t = t + "You have indicated that you would prefer Dr. Paul Willems, DC.<br><br>That should not be a problem.";
    }
    else if (prefer == "6")
    {
      t = t + "You have indicated that you would prefer Dr. Matthew Fisel, ND.<br><br>That should not be a problem.";
    }
    else if (prefer == "7")
    {
      t = t + "You have indicated that you would prefer Dr. Susan Brody, DC.<br><br>That should not be a problem.";
    }
    else if (prefer == "8")
    {
      t = t + "You have indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.<br><br>That should not be a problem.";
    }
    else
    {
      t = t + "You did not indicate any preference, so we will choose the most appropriate doctor for your case.<br><br>We will choose from:<br><br> - A male or female doctor<br> - MD (Medical Doctor)<br> - ND (Naturopathic Doctor)<br> - DC (Doctor of Chiropractic).<br><br>If any of these are unacceptable, please tell us <u>now</u>!";
    }
  }
  else
  {
    if (mustbe == "M")
    {
      t = t + "You have indicated that your doctor must be male.<br><br>";
      if (prefer == "F")
      {
        t = t + "However, you also indicated that you would prefer a female doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "DC")
      {
        t = t + "You also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a male DC is available.";
      }
      else if (prefer == "MD")
      {
        t = t + "You also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a male MD is available.";
      }
      else if (prefer == "ND")
      {
        t = t + "You also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a male ND is available.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND. Please note that Dr. Johnson is a female doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
      t = t + "You also indicated that you would prefer Dr. Paul Willems, DC.&nbsp; That should not be a problem.";
      }
      else if (prefer == "6")
      {
      t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND.&nbsp; That should not be a problem.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC. Please note that Dr. Brody is a female doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD. Please note that Dr. Shelby-Lane is a female doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "We will make the most appropriate choice based on this stipulation, and on an initial analysis of your case.";
      }
    }
    else if (mustbe == "F")
    {
      t = t + "You have indicated that your doctor must be female.<br><br>";
      if (prefer == "M")
      {
        t = t + "However, you also indicated that you would prefer a male doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "DC")
      {
        t = t + "You also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a female DC is available.";
      }
      else if (prefer == "MD")
      {
        t = t + "You also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a female MD is available.";
      }
      else if (prefer == "ND")
      {
        t = t + "You also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a female ND is available.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC. Please note that Dr. Willems is a male doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND. Please note that Dr. Fisel is a male doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND.&nbsp; That should not be a problem.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC.&nbsp; That should not be a problem.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.&nbsp; That should not be a problem.";
      }
      else
      {
        t = t + "We will make the most appropriate choice based on this stipulation, and on an initial analysis of your case.";
      }
    }
    else if (mustbe == "DC")
    {
      t = t + "You have indicated that your doctor must be a Doctor of Chiropractic (DC).<br><br>";
      if (prefer == "M")
      {
        t = t + "You also indicated that you would prefer a male doctor.&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a male DC is available.";
      }
      else if (prefer == "F")
      {
        t = t + "You also indicated that you would prefer a female doctor.&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a female DC is available.";
      }
      else if (prefer == "MD")
      {
        t = t + "However, you also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "ND")
      {
        t = t + "However, you also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND. Please note that Dr. Johnson is a Naturopathic Doctor.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC.&nbsp; That should not be a problem.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND. Please note that Dr. Fisel is a Naturopathic Doctor.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC.&nbsp; That should not be a problem.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD. Please note that Dr. Shelby-Lane is a Medical Doctor.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "We will make the most appropriate choice based on this stipulation, and on an initial analysis of your case.";
      }
    }
    else if (mustbe == "MD")
    {
      t = t + "You have indicated that your doctor must be a Medical Doctor (MD).<br><br>";
      if (prefer == "M")
      {
        t = t + "You also indicated that you would prefer a male doctor.&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a male MD is available.";
      }
      else if (prefer == "F")
      {
        t = t + "You also indicated that you would prefer a female doctor.&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a female MD is available.";
      }
      else if (prefer == "DC")
      {
        t = t + "However, you also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "ND")
      {
        t = t + "However, you also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND. Please note that Dr. Johnson is a Naturopathic Doctor.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC. Please note that Dr. Willems is a Doctor of Chiropractic.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND. Please note that Dr. Fisel is a Naturopathic Doctor.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC. Please note that Dr. Brody is a Doctor of Chiropractic.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.&nbsp; That should not be a problem.";
      }
      else
      {
        t = t + "We will make the most appropriate choice based on this stipulation, and on an initial analysis of your case.";
      }
    }
    else if (mustbe == "ND")
    {
      t = t + "You have indicated that your doctor must be a Naturopathic Doctor (ND).<br><br>";
      if (prefer == "M")
      {
        t = t + "You also indicated that you would prefer a male doctor.&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a male ND is available.";
      }
      else if (prefer == "F")
      {
        t = t + "You also indicated that you would prefer a female doctor.&nbsp; Please note that we will always try to satisfy this preference, but that it may not always be possible.&nbsp; If you do have a very definite preference, please contact us as indicated below to make sure that a female ND is available.";
      }
      else if (prefer == "MD")
      {
        t = t + "However, you also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "DC")
      {
        t = t + "However, you also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND.&nbsp; That should not be a problem.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC. Please note that Dr. Willems is a Doctor of Chiropractic.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND.&nbsp; That should not be a problem.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC. Please note that Dr. Brody is a Doctor of Chiropractic.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD. Please note that Dr. Shelby-Lane is a Medical Doctor.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "We will make the most appropriate choice based on this stipulation, and on an initial analysis of your case.";
      }
    }
    else if (mustbe == "1")
    {
      t = t + "You have indicated that your doctor must be Dr. Michelle Johnson, ND.<br><br>";
      if (prefer == "M")
      {
        t = t + "However, you also indicated that you would prefer a male doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "DC")
      {
        t = t + "However, you also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "MD")
      {
        t = t + "However, you also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "That should not be a problem.";
      }
    }
    else if (mustbe == "3")
    {
      t = t + "You have indicated that your doctor must be Dr. Paul Willems, DC.<br><br>";
      if (prefer == "F")
      {
        t = t + "However, you also indicated that you would prefer a female doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "MD")
      {
        t = t + "However, you also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "ND")
      {
        t = t + "However, you also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "That should not be a problem.";
      }
    }
    else if (mustbe == "6")
    {
      t = t + "You have indicated that your doctor must be Dr. Matthew Fisel, ND.<br><br>";
      if (prefer == "F")
      {
        t = t + "However, you also indicated that you would prefer a female doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "DC")
      {
        t = t + "However, you also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "MD")
      {
        t = t + "However, you also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "That should not be a problem.";
      }
    }
    else if (mustbe == "7")
    {
      t = t + "You have indicated that your doctor must be Dr. Susan Brody, DC.<br><br>";
      if (prefer == "M")
      {
        t = t + "However, you also indicated that you would prefer a male doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "MD")
      {
        t = t + "However, you also indicated that you would prefer a Medical Doctor (MD).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "ND")
      {
        t = t + "However, you also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "8")
      {
        t = t + "You also indicated that you would prefer Dr. Cynthia Shelby-Lane, MD.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "That should not be a problem.";
      }
    }
    else if (mustbe == "8")
    {
      t = t + "You have indicated that your doctor must be Dr. Cynthia Shelby-Lane, MD.<br><br>";
      if (prefer == "M")
      {
        t = t + "However, you also indicated that you would prefer a male doctor!&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "DC")
      {
        t = t + "However, you also indicated that you would prefer a Doctor of Chiropractic (DC).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "ND")
      {
        t = t + "However, you also indicated that you would prefer a Naturopathic Doctor (ND).&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "1")
      {
        t = t + "You also indicated that you would prefer Dr. Michelle Johnson, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "3")
      {
        t = t + "You also indicated that you would prefer Dr. Paul Willems, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "6")
      {
        t = t + "You also indicated that you would prefer Dr. Matthew Fisel, ND.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else if (prefer == "7")
      {
        t = t + "You also indicated that you would prefer Dr. Susan Brody, DC.&nbsp; Please contact us as indicated below to clear up the confusion.";
      }
      else
      {
        t = t + "That should not be a problem.";
      }
    }
    else
    {
      t = t + "You do not appear to have made a clear choice of doctor.<br><br>If you do have a definite preference, please contact us as indicated below.";
    }
  }
  return t;

}

//-->