framework.http={_httpObjectsArray:new Object(),_httpResultsArray:new Object(),loadUrl:function(d,c,a,e,b,f,g){if((typeof(d)!=framework.DataType.STRING)||(framework.util.isUndefinedOrNull(d))||(typeof(c)!=framework.DataType.STRING)||(framework.util.isUndefinedOrNull(c))||(typeof(a)!=framework.DataType.STRING)||(framework.util.isUndefinedOrNull(a))||(typeof(e)!=framework.DataType.STRING)||(framework.util.isUndefinedOrNull(e))||(typeof(b)!=framework.DataType.STRING)||(framework.util.isUndefinedOrNull(b))||(typeof(f)!=framework.DataType.NUMBER)||(framework.util.isUndefinedOrNull(f))||((typeof(g)!=framework.DataType.STRING)&&(!framework.util.isUndefinedOrNull(g)))){return framework.Status.INVALID_ARGUMENT_VALUE;
}if(framework.util.isEmpty(d)||framework.util.isEmpty(c)||(framework.util.isEmpty(g)&&(typeof(g)==framework.DataType.STRING))){return framework.Status.INVALID_ARGUMENT_VALUE;}a=a+framework.Separator.AMPERSAND+framework.HttpConstants.TIMESTAMP+framework.Separator.EQUALS+framework.http._getDate();e=e+"('"+d+"')";
b=b+"('"+d+"')";framework.http._executeHttpCall(d,c,a,e,b,f,g);return framework.Status.SUCCESS;},getHttpCallResults:function(a){if((typeof(a)!=framework.DataType.STRING)||(framework.util.isUndefinedOrNull(a))||framework.util.isEmpty(a)){return framework.Status.INVALID_ARGUMENT_VALUE;}framework.http._httpResultsArray.responseText=framework.http._httpResultsArray[a+framework.HttpConstants.RESPONSE_TEXT];
framework.http._httpResultsArray.url=framework.http._httpResultsArray[a+framework.HttpConstants.URL];framework.http._httpResultsArray.status=framework.http._httpResultsArray[a+framework.HttpConstants.STATUS];return framework.http._httpResultsArray;},_executeHttpCall:function(name,url,querystring,callbackSuccess,callbackFailure,timeout,redirectURL){querystring=querystring+framework.Separator.AMPERSAND+framework.HttpConstants.COOKIES+framework.Separator.EQUALS+escape(document.cookie);
framework.http._httpResultsArray[name]=null;framework.http._httpObjectsArray[name]=framework.http._getHttpObject();if(!framework.util.isUndefinedOrNull(framework.http._httpObjectsArray[name])){framework.http._httpObjectsArray[name].open("POST",url,true);framework.http._httpObjectsArray[name].setRequestHeader("Content-type","application/x-www-form-urlencoded");
framework.http._httpObjectsArray[name].setRequestHeader("Content-length",querystring.length);framework.http._httpObjectsArray[name].setRequestHeader("Connection","close");framework.http._httpObjectsArray[name].onreadystatechange=function(){if(framework.http._httpObjectsArray[name].readyState==framework.HttpConstants.READY_STATE_FINISHED){try{if(framework.http._httpObjectsArray[name].status==framework.HttpConstants.STATUS_OK){var timeoutId=framework.http._httpResultsArray[name+framework.HttpConstants.TIMEOUT_ID];
window.clearTimeout(timeoutId);framework.http._httpResultsArray[name]=name;framework.http._httpResultsArray[name+framework.HttpConstants.RESPONSE_TEXT]=framework.http._httpObjectsArray[name].responseText;framework.http._httpResultsArray[name+framework.HttpConstants.URL]=url;framework.http._httpResultsArray[name+framework.HttpConstants.STATUS]=framework.http._httpObjectsArray[name].status;
if(!framework.util.isUndefinedOrNull(redirectURL)){var text=framework.http._httpObjectsArray[name].responseText;if(text.indexOf("<html")>-1&&text.indexOf("</html>")>-1){window.location.href=redirectURL;}}try{eval(callbackSuccess);}catch(e){}}else{var timeoutId=framework.http._httpResultsArray[name+framework.HttpConstants.TIMEOUT_ID];
window.clearTimeout(timeoutId);framework.http._httpResultsArray[name+framework.HttpConstants.RESPONSE_TEXT]="";framework.http._httpResultsArray[name+framework.HttpConstants.URL]=url;framework.http._httpResultsArray[name+framework.HttpConstants.STATUS]=framework.http._httpObjectsArray[name].status;try{eval(callbackFailure);
}catch(e){}}}catch(e){var timeoutId=framework.http._httpResultsArray[name+framework.HttpConstants.TIMEOUT_ID];window.clearTimeout(timeoutId);framework.http._httpResultsArray[name+framework.HttpConstants.RESPONSE_TEXT]="";framework.http._httpResultsArray[name+framework.HttpConstants.URL]=url;framework.http._httpResultsArray[name+framework.HttpConstants.STATUS]=framework.HttpConstants.STATUS_BAD;
try{eval(callbackFailure);}catch(e){}}}};var timeoutId=window.setTimeout(function(){var readyState=framework.http._httpObjectsArray[name].readyState;if(readyState!=framework.HttpConstants.READY_STATE_FINISHED||readyState!=framework.HttpConstants.READY_STATE_UNINITIALIZED){framework.http._httpObjectsArray[name].abort();
}if(framework.util.isInternetExplorer()){framework.http._httpObjectsArray[name].onreadystatechange=function(){};}else{framework.http._httpObjectsArray[name].onreadystatechange=null;}framework.http._httpObjectsArray[name]=null;framework.http._httpResultsArray[name+framework.HttpConstants.RESPONSE_TEXT]="";
framework.http._httpResultsArray[name+framework.HttpConstants.URL]=url;framework.http._httpResultsArray[name+framework.HttpConstants.STATUS]=framework.HttpConstants.ERRORTIMEOUT;try{eval(callbackFailure);}catch(e){return framework.Status.INVALID_FORMAT;}},timeout);framework.http._httpResultsArray[name+framework.HttpConstants.TIMEOUT_ID]=timeoutId;
framework.http._httpObjectsArray[name].send(querystring);}},_xmlHttpFactories:[function(){var a=new XMLHttpRequest();return a;},function(){var a=new ActiveXObject("MSXML2.XMLHTTP.6.0");return a;},function(){var a=new ActiveXObject("MSXML2.XMLHTTP.3.0");return a;}],_getHttpObject:function(){var a=null;
for(var b=0;b<framework.http._xmlHttpFactories.length;b+=1){try{a=framework.http._xmlHttpFactories[b]();}catch(c){continue;}break;}return a;},_getDate:function(){var a=new Date();a=a.getYear()+""+(a.getMonth()+1)+""+a.getDate()+""+a.getHours()+""+a.getMinutes()+""+a.getSeconds();return a;},cancelAllHttp:function(){for(var a in framework.http._httpObjectsArray){try{if(framework.util.isInternetExplorer()){framework.http._httpObjectsArray[a].onreadystatechange=function(){};
}else{framework.http._httpObjectsArray[a].onreadystatechange=null;}if(readyState==framework.HttpConstants.READY_STATE_FINISHED||readyState==framework.HttpConstants.READY_STATE_UNINITIALIZED){framework.http._httpObjectsArray[name].abort();}framework.http._httpObjectsArray[a]=null;}catch(b){}}return framework.Status.SUCCESS;
},cancelSingleHttp:function(a){try{if(framework.util.isInternetExplorer()){framework.http._httpObjectsArray[a].onreadystatechange=function(){};}else{framework.http._httpObjectsArray[a].onreadystatechange=null;}framework.http._httpObjectsArray[a].onreadystatechange=function(){};if(readyState==framework.HttpConstants.READY_STATE_FINISHED||readyState==framework.HttpConstants.READY_STATE_UNINITIALIZED){framework.http._httpObjectsArray[a].abort();
}framework.http._httpObjectsArray[a]=null;}catch(b){}return framework.Status.SUCCESS;},loaded:true};