var xmlHttp10

function zjistit_zpravy(str)
{
xmlHttp10=GetXmlHttpObject()
if (xmlHttp10==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

var url10="index_bd.php?modul=danove_dotazy/danove_dotazy&"
url10=url10+"zjistit_zpravy="+str

xmlHttp10.onreadystatechange=function() { 
        if (xmlHttp10.readyState==4 || xmlHttp10.readyState=="complete")
                stateChanged10(xmlHttp10);
    }

xmlHttp10.open("GET",url10,true)

xmlHttp10.send(null)

}

function stateChanged10(req)
{ 
document.getElementById("zpravy").innerHTML=req.responseText
}

function GetXmlHttpObject()
{
var xmlHttp10=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp10=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp10=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp10=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp10;
}

