var maxAjaxManager={};maxAjaxManager.error={};maxAjaxManager.xmlhttp={};maxAjaxManager.callback={};maxAjaxManager.status={};maxAjaxManager.result={};maxAjaxManager.createXMLHTTP=function(C){var A;try{if(window.XMLHttpRequest){A=new XMLHttpRequest()}else{A=new ActiveXObject("Microsoft.XMLHTTP")}}catch(B){if(C){maxAjaxManager.error[C]={code:B.number,text:B.description}}return null}return A};maxAjaxManager.get=function(D,C,B,A){return maxAjaxManager.call(D,"get",C,B,A)};maxAjaxManager.post=function(E,D,C,B,A){if(!A){A={}}A.requestString=B;return maxAjaxManager.call(E,"post",D,C,A)};maxAjaxManager.call=function(G,B,D,C,A){if(!A){A={}}if(!B){B="GET"}if(!A.async){A.async=true}if(!A.responseType){A.responseType=0}if(!A.requestString){A.requestString=""}if((B!="post")||(B=="post"&&A.requestString=="")){B="get"}if(!maxAjaxManager.xmlhttp[G]){maxAjaxManager.xmlhttp[G]=maxAjaxManager.createXMLHTTP(G);if(!maxAjaxManager.xmlhttp[G]){return false}}maxAjaxManager.callback[G]=C;maxAjaxManager.xmlhttp[G].onreadystatechange=function(){return maxAjaxManager.checkState(G,A.responseType)};if(A.requestHeaders){for(var E=0;E<A.requestHeaders.length;E++){maxAjaxManager.xmlhttp[G].setRequestHeader(A.requestHeaders[E][0],A.requestHeaders[E][1])}}try{maxAjaxManager.xmlhttp[G].open(B,D,A.async);maxAjaxManager.xmlhttp[G].send(A.requestString)}catch(F){maxAjaxManager.error[G]={code:F.number,text:F.description};return false}return true};maxAjaxManager.checkState=function(B,A){if(maxAjaxManager.xmlhttp[B].readyState!=4){return}if(A=="xml"){maxAjaxManager.result[B]=maxAjaxManager.xmlhttp[B].responseXML.xml}else{if(A=="stream"){maxAjaxManager.result[B]=maxAjaxManager.xmlhttp[B].responseStream}else{maxAjaxManager.result[B]=maxAjaxManager.xmlhttp[B].responseText}}maxAjaxManager.status[B]={code:maxAjaxManager.xmlhttp[B].status,text:maxAjaxManager.xmlhttp[B].statusText};maxAjaxManager.callback[B](B,(maxAjaxManager.xmlhttp[B].status==200?true:false));maxAjaxManager.xmlhttp[B].onreadystatechange=function(){};maxAjaxManager.xmlhttp[B]=null;maxAjaxManager.callback[B]=null};maxAjaxManager.dispose=function(B){try{maxAjaxManager.xmlhttp[B].abort();maxAjaxManager.xmlhttp[B].onreadystatechange=function(){};maxAjaxManager.xmlhttp[B]=null;maxAjaxManager.callback[B]=null;maxAjaxManager.result[B]=null;maxAjaxManager.error[B]=null;maxAjaxManager.status[B]=null}catch(A){}};maxAjaxManager.cleanUp=function(){try{for(var B in maxAjaxManager.xmlhttp){maxAjaxManager.xmlhttp[B].abort();maxAjaxManager.xmlhttp[B].onreadystatechange=function(){};maxAjaxManager.xmlhttp[B]=null}for(var B in maxAjaxManager.callback){maxAjaxManager.callback[B]=null}for(var B in maxAjaxManager.result){maxAjaxManager.result[B]=null}for(var B in maxAjaxManager.error){maxAjaxManager.error[B]=null}for(var B in maxAjaxManager.status){maxAjaxManager.status[B]=null}}catch(A){}};if(window.attachEvent){window.attachEvent("onunload",maxAjaxManager.cleanUp)}else{window.addEventListener("unload",maxAjaxManager.cleanUp,false)};