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); } } 
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(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			(http.status==1223)|| 						// Internet Explorer mangled the status code			(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.substr(0, 9) == "text/json" || kwArgs.mimetype.substr(0, 16) == "application/json"){				try{					ret = dj_eval("("+kwArgs.jsonFilter(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/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js