function getHTTPObject() 
  {
  	var xmlhttp;
  	/*@cc_on
  	@if (@_jscript_version >= 5)
  		try {
  		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  		} catch (e) {
  		try {
  			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  		} catch (E) {
  			xmlhttp = false;
  		}
  		}
  	@else
  	xmlhttp = false;
  	@end @*/
  	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
  		try {
  		xmlhttp = new XMLHttpRequest();
  		} catch (e) {
  		xmlhttp = false;
  		}
  	}
  	return xmlhttp;
  }
  
  var http;
  
  function getHttpContent2(url)
  {
    http=getHTTPObject(); 
	 http.onreadystatechange=httpChange;
	
	
	 http.open("GET", url, true);	
  	
    try
    {
  	 http.send(null);	
  	}
  	catch(e)
  	{
  	 window.status = e;
    }
  }
  
  function httpChange()
 	{
 	 // alert(http.readyState);
    if (http.readyState==4)
    {
      
      if (http.status==200)
      {
        alert(http.responseText.substring(0,2));
        if (!(parseInt(http.responseText))) 
        //alert(window.document.getElementById("total_amount").innerHTML);
          window.document.getElementById("hlasovalo").innerHTML = http.responseText;
        return true
      }
      else
      {
        return false;
      }
    }
  }
