<!-- hide JS code
var radio=""; //for checking if the "callback" radio button is checked 
function validateForm(form)  // validate user input
{
    var form_name=form.name; 
    

    if (!validatePatient(form.patient.value))    // subject valid?  
      {
         form.Patient.focus()
         return false
      }
    if (!validateMessage(form.Message.value))    // Message valid?  
      {
         form.Message.focus()
         return false
      }
    return true
}

function isBlank(testStr) // check if a field is blank
  {
  if (testStr.length == 0)                     // nothing entered?
    return true
  for (var i = 0; i <= testStr.length-1; i++)  // all spaces?
    if (testStr.charAt(i) != " ")
      return false
  return true
  }

function validatePatient(Patient) // check if subject is valid  
  {
  if (isBlank(Patient))                     // subject blank?
    {
    alert("Please enter patient name:")
    return false
    }
  return true
  }

function validateMessage(Message) // check if message is valid
  {
  if (isBlank(Message))                     // message blank?
    {
    alert("Please enter your message:")
    return false
    }
  return true
  }
-->
