<!--

  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;
  }

  function send_http(url, handler, method) {
    method = method || "POST";

    if(http_obj && !http_obj_is_working) {
      http_obj_is_working = true;
      http_obj_handler = handler;

      http_obj.open(method, url, true);
      http_obj.onreadystatechange = handle_http;
      http_obj.send(null);
    }
  }

  function handle_http() {
    if(http_obj.readyState == 4) {
      http_obj_handler(http_obj.responseText);
      http_obj_is_working = false;
    }
  }

  var http_obj = getHTTPObject(); // We create the HTTP Object
  var http_obj_is_working = false;
  var http_obj_handler = null;

//-->