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

