var xmlHttp

function showHint(str, box, thisForm)
{
if (str.length==0)
  { 
  document.getElementById("find_staff_list").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support this function.");
  return;
  } 
var url="/find_staff.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{
		document.getElementById("find_staff_list").innerHTML=xmlHttp.responseText;
	}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

// Creates hyperlinks for the list of staff names
function getStaffID(thisID){
	var staffURL;
	staffURL = "/staff/StaffSearch/staff_profile.asp?staff_id=";
	staffURL = staffURL+thisID;
	window.location = staffURL;
}

function showNameList(){
	document.getElementById("nameList").style.display="block";
}