/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function showResult(str)
{
if (str.length==0)
  {
  document.getElementById("livesearch").innerHTML="";
  document.getElementById("livesearch").style.border="0px";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("livesearch").innerHTML=xmlhttp.responseText;
    document.getElementById("livesearch").style.border="1px solid #B5AD88";
    document.getElementById("livesearch").style.width="500px";
    }
  }
xmlhttp.open("GET","ajax_members.php?SearchCriteria="+str+"&Type=Search",true);
xmlhttp.send();
}

function updateField(str) {
if (str.length >= 1) {
   OldInfo = document.PC.PC_To.value;
   if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
   } else {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
   xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4 && xmlhttp.status==200) {
         document.PC.PC_To.value=xmlhttp.responseText;
      }
   }
}
document.getElementById("livesearch").innerHTML= "";
document.PC.PC_To.focus();
xmlhttp.open("GET","ajax_members.php?OldItem="+OldInfo+"&NewItem="+str+"&Type=Update",true);
xmlhttp.send();
}
//  document.getElementById("PC_To").innerHTML=str;
