<!--
  //Vytvorenie objektu XMLHttpRequest
  function createXhr () {
    	var xhr = null;
    	if (window.XMLHttpRequest)
    		xhr = new XMLHttpRequest ();
    	else if (window.ActiveXObject)
    		try { xhr = new ActiveXObject ("Msxml2.XMLHTTP"); }
    		catch (e)
    		{
    			try { xhr = new ActiveXObject ("Microsoft.XMLHTTP"); }
    			catch (e) {}
    		}
    	return xhr;
  }
  //Odoslanie požiadavky metódou GET
  function sendRequest (id, url) {
    	var xhr = createXhr ();
    	if (xhr)
    	{
    		xhr.open ("GET", url);
    		xhr.onreadystatechange = function () { if (receiveResponse (id,xhr)) xhr = null; };
    		xhr.send (null);
    	}
    	return xhr;
  }
  //Prijatie odpovede
  function receiveResponse (id,xhr) {
      	if (xhr.readyState == 4)
      	{
      		if (!xhr.status || xhr.status == 200)
      			 document.getElementById(id).innerHTML = xhr.responseText;
      		else
      			 alert ("Error: " + xhr.statusText);
      		return true;
      	}
      	return false;
  }
-->
