function doLoad(kwArgs, http, url, query, useCache) { if( ((http.status>=200)&&(http.status<300))|| (http.status==304)|| (location.protocol=="file:" && (http.status==0 || http.status==undefined))|| (location.protocol=="chrome:" && (http.status==0 || http.status==undefined)) ){ var ret; if(kwArgs.method.toLowerCase() == "head"){ var headers = http.getAllResponseHeaders(); ret = {}; ret.toString = function(){ return headers; } var values = headers.split(/[\r\n]+/g); for(var i = 0; i < values.length; i++) { var pair = values[i].match(/^([^:]+)\s*:\s*(.+)$/i); if(pair) { ret[pair[1]] = pair[2]; } } }else if(kwArgs.mimetype == "text/javascript"){ try{ ret = dj_eval(http.responseText); }catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret = null; } }else if(kwArgs.mimetype == "text/json" || kwArgs.mimetype == "application/json"){ try{ ret = dj_eval("("+http.responseText+")"); }catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret = false; } }else if((kwArgs.mimetype == "application/xml")|| (kwArgs.mimetype == "text/xml")){ ret = http.responseXML; if(!ret || typeof ret == "string" || !http.getResponseHeader("Content-Type")) { ret = dojo.dom.createDocumentFromText(http.responseText); } }else{ ret = http.responseText; }  if(useCache){ addToCache(url, query, kwArgs.method, http); } kwArgs[(typeof kwArgs.load == "function") ? "load" : "handle"]("load", ret, http, kwArgs); }else{ var errObj = new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText); kwArgs[(typeof kwArgs.error == "function") ? "error" : "handle"]("error", errObj, http, kwArgs); } } 
function doLoad(_61b,http,url,_61e,_61f){ if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){ var ret; if(_61b.method.toLowerCase()=="head"){ var _621=http.getAllResponseHeaders(); ret={}; ret.toString=function(){ return _621; }; var _622=_621.split(/[\r\n]+/g); for(var i=0;i<_622.length;i++){ var pair=_622[i].match(/^([^:]+)\s*:\s*(.+)$/i); if(pair){ ret[pair[1]]=pair[2]; } } }else{ if(_61b.mimetype=="text/javascript"){ try{ ret=dj_eval(http.responseText); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=null; } }else{ if(_61b.mimetype=="text/json"||_61b.mimetype=="application/json"){ try{ ret=dj_eval("("+http.responseText+")"); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=false; } }else{ if((_61b.mimetype=="application/xml")||(_61b.mimetype=="text/xml")){ ret=http.responseXML; if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){ ret=dojo.dom.createDocumentFromText(http.responseText); } }else{ ret=http.responseText; } } } } if(_61f){ addToCache(url,_61e,_61b.method,http); } _61b[(typeof _61b.load=="function")?"load":"handle"]("load",ret,http,_61b); }else{ var _625=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText); _61b[(typeof _61b.error=="function")?"error":"handle"]("error",_625,http,_61b); } } 
  function doLoad(kwArgs, http, url, query, useCache) {    if( ((http.status>=200)&&(http.status<300))||   // allow any 2XX response code      (http.status==304)||            // get it out of the cache      (location.protocol=="file:" && (http.status==0 || http.status==undefined))||      (location.protocol=="chrome:" && (http.status==0 || http.status==undefined))    ){      var ret;      if(kwArgs.method.toLowerCase() == "head"){        var headers = http.getAllResponseHeaders();        ret = {};        ret.toString = function(){ return headers; }        var values = headers.split(/[\r\n]+/g);        for(var i = 0; i < values.length; i++) {          var pair = values[i].match(/^([^:]+)\s*:\s*(.+)$/i);          if(pair) {            ret[pair[1]] = pair[2];          }        }      }else if(kwArgs.mimetype == "text/javascript"){        try{          ret = dj_eval(http.responseText);        }catch(e){          dojo.debug(e);          dojo.debug(http.responseText);          ret = null;        }      }else if(kwArgs.mimetype == "text/json" || kwArgs.mimetype == "application/json"){        try{          ret = dj_eval("("+http.responseText+")");        }catch(e){          dojo.debug(e);          dojo.debug(http.responseText);          ret = false;        }      }else if((kwArgs.mimetype == "application/xml")||            (kwArgs.mimetype == "text/xml")){        ret = http.responseXML;        if(!ret || typeof ret == "string" || !http.getResponseHeader("Content-Type")) {          ret = dojo.dom.createDocumentFromText(http.responseText);        }      }else{        ret = http.responseText;      }      if(useCache){ // only cache successful responses        addToCache(url, query, kwArgs.method, http);      }      kwArgs[(typeof kwArgs.load == "function") ? "load" : "handle"]("load", ret, http, kwArgs);    }else{      var errObj = new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);      kwArgs[(typeof kwArgs.error == "function") ? "error" : "handle"]("error", errObj, http, kwArgs);    }  }
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js