<!-- // Required to be compliant with XHTML-->
var xmlHttp=null; // Defines that xmlHttp is a new variable.
// Try to get the right object for different browser
try {
  // Firefox, Opera 8.0+, Safari, IE7+
  xmlHttp = new XMLHttpRequest(); // xmlHttp is now a XMLHttpRequest.
} catch (e) {
  // Internet Explorer
  try {
     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
     xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
}

function stateChanged() {
  if (xmlHttp.readyState == 4)
     try { // In some instances, status cannot be retrieved and will produce
           // an error (e.g. Port is not responsive)
        if (xmlHttp.status == 200) {
           // Set the main HTML of the body to the info provided by the
           // Ajax Request
           document.getElementById("ajax_output").innerHTML
              = xmlHttp.responseText;
        }
     } catch (e) {
        document.getElementById("ajax_output").innerHTML
           = "Error on Ajax return call : " + e.description;
     }

}

function searchMember(path) {
  var searchText = document.getElementById("searchtext").value;
  var searchTherapist = document.getElementById("searchtherapist").value;
  var searchConsultant = document.getElementById("searchconsultant").value;
  var searchArea = document.getElementById("searcharea").value;
  
  var url=path;
  url=url+"includes/ajax/searchMember.asp?VersionID=1&Pages=108,89,43";
  url=url+"&s="+searchText;
  url=url+"&t="+searchTherapist;
  url=url+"&c="+searchConsultant;
  url=url+"&a="+searchArea;
  url=url+"&sid="+Math.random();

  xmlHttp.open("GET",url,true);
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.send(null);
}

function deleteCategory(str, path) {
  var url=path;
  url=url+"include/ajax/deleteCategory.php";
  url=url+"?q="+str;
  url=url+"&sid="+Math.random();

  xmlHttp.open("GET",url,true);
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.send(null);
}
-->