var xmlHttp2

function DshowResult(lat,lng)
{

xmlHttp2=GetXmlHttpObject()

if (xmlHttp2==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 /*alert(str);*/
var url="getBlizkaSpirka.php"
url=url+"?lat="+lat;
url=url+"&lng="+lng;
xmlHttp2.onreadystatechange=DstateChanged
xmlHttp2.open("GET",url,true);
xmlHttp2.send(null);

}

function DstateChanged()
{
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
 {     
 document.getElementById("NSp2").value=xmlHttp2.responseText;
 }
}
