var xhr =null; 
    	try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    	catch (e) 
    	{
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
		  }	

function getData(zrodlo, cel) 	
{
	 
	 if(xhr) 
	  {
	   var cel = document.getElementById(cel);
	   xhr.open("GET", zrodlo);

		xhr.onreadystatechange = function() 
		{
	 	if (xhr.readyState == 4)
	   {
	    cel.innerHTML = xhr.responseText; 
	   }
		} 
		xhr.send(null); 
		} 
} 
