
      this.xmlhttp.abort();
    }
  },
  add: function(method, url, params, callback){
    this.queue.push({url:url,method:method,params:params,callback:callback});
    if(!this.running){
      this._request(this.queue.shift());
    }
  }
}

var requests = new QueuedRequester();

function createFileUploader(element, tree, editor){
  var xmlHttp;
  
  var refresh = ce("button");
  refresh.innerHTML = 'Refresh List';
  ge(element).appendChild(refresh);

  var input = ce("input");
  input.type = "file";
  inp