function CheckVals () {
 vSelectOp = document.phchowhear.whereheard.value;
 vDetail   = document.phchowhear.hearddetail.value;
 vExtraBox = document.getElementById('phcgetmore');

 if (vSelectOp == "choose") {
  alert("Please select a value from the list to continue.  Thank you.")
  return false;
 }

 if (vExtraBox.style.visibility == "visible") {
  if (vDetail == "") {
   alert("Please provide detail for your selection to continue.  Thank you.")
   return false;
  }
 } else {
  document.phchowhear.hearddetail.value = "n/a"
 }

 document.phchowhear.submit();
}

function ShowExtra () {
 vExtraBox = document.getElementById('phcgetmore');
 vPlaceMsg = document.getElementById('phcmsg');
 vSelectOp = document.phchowhear.whereheard.value;
 vShowIt   = 0;

 switch(vSelectOp) {
  case "tv":
   vMsg = "Which show?";
   vShowIt = 1;
   break;    
  case "radio":
   vMsg = "Which station?";
   vShowIt = 1;
   break;    
  case "magazine":
   vMsg = "Which one?";
   vShowIt = 1;
   break;    
  case "other":
   vMsg = "Please describe:";
   vShowIt = 1;
   break;
  case "doctor":
  case "brochure":
  case "socialworker":
   vMsg = "From where?";
   vShowIt = 1;
   break;
  default:
   vMsg = "";
 }

 vPlaceMsg.firstChild.nodeValue = vMsg;

 if (vShowIt) {
  vExtraBox.style.visibility = "visible";
 } else {
  vExtraBox.style.visibility = "hidden";
 }
}
