  function Ajax(url)
  {
    this.url = url;
    this.method = "POST";
    this.xmlHttp = null;
    this.request = '';
    this.response = "";

    this.Create = function()
    {
      try
      {      
        this.xmlHttp = new XMLHttpRequest();
      }
      catch(e)
      {
        try
        {
          this.xmlHttp = new ActiveXObject("Msxml2.XMLHTTP")
        }
        catch(e)
        {
          try
          {
            this.xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
          }
          catch(e)
          {
            alert("Your browse does not support AJAX!");
            return false;
          }
        }        
      }
    };

	this.OnComplete = function()
	  {
	  };

    this.Run = function()
    {
      var self = this;
      this.xmlHttp.onreadystatechange = function()
      {
        switch(self.xmlHttp.readyState)
        {
          case 4:
            self.response = self.xmlHttp.responseText;
            self.OnComplete();
            break;
        }
      };
      this.xmlHttp.open(this.method,this.url,true);
	  this.xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	  this.xmlHttp.setRequestHeader("Content-length", "0");
      this.xmlHttp.send(this.request);

    };
    this.Create();
  }
