function check_content(content,location)
{
if (content=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  window[location]=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  window[location]=new ActiveXObject("Microsoft.XMLHTTP");
  }
window[location].onreadystatechange=function()
  {
  if (window[location].readyState==4 && window[location].status==200)
    {
    document.getElementById(location).innerHTML=window[location].responseText;
    }
  if (window[location].readyState==1)
    {
    document.getElementById(location).innerHTML='<img src="/images/ajax-loader.gif" alt="Loading..." />  Loading...';
    }
  }
window[location].open("GET",content,true);
window[location].send();
}

/*function check(content,location)
{
if (content=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  window[location]=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  window[location]=new ActiveXObject("Microsoft.XMLHTTP");
  }
window[location].onreadystatechange=function()
  {
  if (window[location].readyState==4 && window[location].status==200)
    {
    document.getElementById(location).innerHTML=window[location].responseText;
    }
  if (window[location].readyState==1)
    {
    document.getElementById(location).innerHTML='<img src="/images/ajax-loader.gif" alt="Loading..." />  Loading...';
    }
  }
window[location].open("GET",content,true);
window[location].send();
}*/
