var xmlHttp;
var raspuns;

function rasp()
{
	return raspuns;
}

function ajax(url,tip)
{ 
if ((navigator.userAgent.indexOf("Firefox")>=0))
{
xmlHttp=new XMLHttpRequest()
xmlHttp.onload=stateChanged
xmlHttp.onerror=stateChanged 
}
else
	xmlHttp=new XMLHttpRequest();
//if (str.length > 0)
//{ 
//var url="a.php?sid=" + Math.random() + "&q=" + str
//xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET", url , tip)
xmlHttp.onreadystatechange = stateChanged
xmlHttp.send(null)
//} 
//else
//{ 
//document.getElementById("txtHint").innerHTML=""
//} 
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
//document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
raspuns=xmlHttp.responseText
} 
}