var xmlHttp


function kaina(p0,p1,p2)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="includes/rez1.php"
url=url+"?q="+p0+"&w="+p1+"&e="+p2
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function kaina1(p0,p1,p2,p3)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="includes/rez2.php"
url=url+"?q="+p0+"&w="+p1+"&e="+p2+"&r="+p3
xmlHttp.onreadystatechange=stateChanged1
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function stateChanged()
{

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
  document.getElementById("txtHint").innerHTML=xmlHttp.responseText
 }
}

function stateChanged1()
{


if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
  document.getElementById("txtHint1").innerHTML=xmlHttp.responseText
 }
}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}