rem: function() { return new XMLHttpRequest(); }, 
add: fleegix.xhr = new function() {    this.req = null; this.reqId = 0; this.url = null; this.status = null; this.statusText = ''; this.method = 'GET'; this.async = true; this.dataPayload = null; this.readyState = null; this.responseText = null; this.responseXML = null; this.handleResp = null; this.responseFormat = 'text', this.mimeType = null; this.username = ''; this.password = ''; this.headers = [];  var i = 0; var reqTry = [ function() { return new XMLHttpRequest(); }, function() { return new ActiveXObject('Msxml2.XMLHTTP') }, function() { return new ActiveXObject('Microsoft.XMLHTTP' )} ];  while (!this.req && (i < reqTry.length)) { try { this.req = reqTry[i++](); } catch(e) {} } if (this.req) { this.reqId = 0; } else { alert('Could not create XMLHttpRequest object.'); }    this.doGet = function(hand, url, format) { this.handleResp = hand; this.url = url; this.responseFormat = format || 'text'; return this.doReq(); }; this.doPost = function(hand, url, dataPayload, format) { this.handleResp = hand; this.url = url; this.dataPayload = dataPayload; this.responseFormat = format || 'text'; this.method = 'POST'; return this.doReq(); }; this.doReq = function() { var self = null; var req = null; var id = null; var headArr = [];  req = this.req; this.reqId++; id = this.reqId;   if (this.username && this.password) { req.open(this.method, this.url, this.async, this.username, this.password); } else { req.open(this.method, this.url, this.async); }  if (this.mimeType && navigator.userAgent.indexOf('MSIE') == -1) { req.overrideMimeType(this.mimeType); }   if (this.headers.length) {  for (var i = 0; i < this.headers.length; i++) { headArr = this.headers[i].split(': '); req.setRequestHeader(headArr[i], headArr[1]); } this.headers = []; }  else { if (this.method == 'POST') { req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } }  self = this; req.onreadystatechange = function() { var resp = null; self.readyState = req.readyState; if (req.readyState == 4) {   self.status = req.status; self.statusText = req.statusText; self.responseText = req.responseText; self.responseXML = req.responseXML;   switch(self.responseFormat) {  case 'text': resp = self.responseText; break;  case 'xml': resp = self.responseXML; break;  case 'object': resp = req; break; }   if (self.status > 199 && self.status < 300) { if (self.async) {  if (!self.handleResp) { alert('No response handler defined ' + 'for this XMLHttpRequest object.'); return; } else { self.handleResp(resp, id); } } }  else { self.handleErr(resp); } } }   req.send(this.dataPayload); if (this.async) { return id; } else { return req; } }; this.abort = function() { if (this.req) { this.req.onreadystatechange = function() { }; this.req.abort(); this.req = null; } }; this.handleErr = function() { var errorWin;  try { errorWin = window.open('', 'errorWin'); errorWin.document.body.innerHTML = this.responseText; }  catch(e) { alert('An error occurred, but the error message cannot be' + ' displayed because of your browser\'s pop-up blocker.\n' + 'Please allow pop-ups from this Web site.'); } }; this.setMimeType = function(mimeType) { this.mimeType = mimeType; }; this.setHandlerResp = function(funcRef) { this.handleResp = funcRef; }; this.setHandlerErr = function(funcRef) { this.handleErr = funcRef; }; this.setHandlerBoth = function(funcRef) { this.handleResp = funcRef; this.handleErr = funcRef; }; this.setRequestHeader = function(headerName, headerValue) { this.headers.push(headerName + ': ' + headerValue); }; } 
context:     function() { return new XMLHttpRequest(); },
meta: 10428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10428/f0576f65a7b0341560eac2493956030db69acdc9/fleegix.js.uncompressed.js/clean/fleegix.js.uncompressed.js