var ajxmlHttp;
var ajraspuns;

function rasp()
{
	return ajraspuns;
}

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

function ajstateChanged() 
{ 
if (ajxmlHttp.readyState==4 || ajxmlHttp.readyState=="complete")
{ 
//document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
ajraspuns=ajxmlHttp.responseText
} 
}