function getXMLHttp()
{
  var xmlHttp

  try
  {
    //Firefox, Opera 8.0+, Safari
    xmlHttp = new XMLHttpRequest();
  }
  catch(e)
  {
    //Internet Explorer
    try
    {
      xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e)
    {
      try
      {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch(e)
      {
        alert("Your browser does not support AJAX!")
        return false;
      }
    }
  }
  return xmlHttp;
}

function handleAjaxResponse(response)
{
  //Find our element
  var results = document.getElementById('emplistingdesc');
  //Populate the results
  if (results != null)
    results.innerHTML = response;
}

function show_employee(url) {
  //Now post an AJAX request, and use the results to populate our element
  var xmlHttp = getXMLHttp();

  //Handle the response
  xmlHttp.onreadystatechange = function()
  {
    if(xmlHttp.readyState == 4)
      handleAjaxResponse(xmlHttp.responseText);
  }

  //Send the request
  xmlHttp.open("GET", url, true);
  xmlHttp.send(null);
}


