var xmlHttpN
function showHintN(str)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML=""
  return
  }
xmlHttpN=GetXmlHttpObjectN()
if (xmlHttpN==null)
  {
  alert ("Browser does not support HTTP Request")
  return
  } 
var url="newssearch.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttpN.onreadystatechange=stateChangedN
xmlHttpN.open("GET",url,true)
xmlHttpN.send(null)
} 
function stateChangedN()
{ 

     if(xmlHttpN.readyState == 0)
     {
     document.getElementById("txtHint").innerHTML = "<div style='background-color: #fff; -moz-border-radius: 10px; border: 10px solid #4c78b3; -webkit-border-radius: 10px; border-radius: 10px; width: 640px; padding: 10px; margin-bottom: 10px;'><img src='bilder/loading.gif' alt='Suche in Arbeit' /></div>";
     }
     else if(xmlHttpN.readyState == 1)
     {
     document.getElementById("txtHint").innerHTML = "<div style='background-color: #fff; -moz-border-radius: 10px; border: 10px solid #4c78b3; -webkit-border-radius: 10px; border-radius: 10px; width: 640px; padding: 10px; margin-bottom: 10px;'><img src='bilder/loading.gif' alt='Suche in Arbeit' /></div>";
     }
     else if(xmlHttpN.readyState == 2)
     {
     document.getElementById("txtHint").innerHTML = "<div style='background-color: #fff; -moz-border-radius: 10px; border: 10px solid #4c78b3; -webkit-border-radius: 10px; border-radius: 10px; width: 640px; padding: 10px; margin-bottom: 10px;'><img src='bilder/loading.gif' alt='Suche in Arbeit' /></div>";
     }
     else if(xmlHttpN.readyState == 3)
     {
     document.getElementById("txtHint").innerHTML = "<div style='background-color: #fff; -moz-border-radius: 10px; border: 10px solid #4c78b3; -webkit-border-radius: 10px; border-radius: 10px; width: 640px; padding: 10px; margin-bottom: 10px;'><img src='bilder/loading.gif' alt='Suche in Arbeit' /></div>";
     } 
     
     
else if (xmlHttpN.readyState==4 || xmlHttpN.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttpN.responseText
 } 
}
function GetXmlHttpObjectN()
{
var xmlHttpN=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpN=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttpN=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpN=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpN;
}
