var xmlHttp

function ShowNews(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="get_news.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedGN
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChangedGN() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("pub_news").innerHTML=xmlHttp.responseText 
 } 
}

