    var ajax_busy = 0;

    function updatepage(result, obj){
      document.getElementById(obj).innerHTML = result;
      document.getElementById(obj).style.display = 'block';
      ajax_busy = 0;
    }

    function GetData(from, req, obj) {
      ajax_busy = 1;
      var xmlHttpReq = false;
      var self = this;
      // Mozilla/Safari
      if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
      }
      // IE
      else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
      }
      self.xmlHttpReq.open('POST', from, true);
      self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
      self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
          updatepage(self.xmlHttpReq.responseText, obj);
        }
      }
      self.xmlHttpReq.send(req);
    }
