/*-- Copyright 2008 I may, All Rights Reserved.*/ iajax={ max_cache:500, respons:new Array(), createXMLHttp:function(){if(typeof XMLHttpRequest !="undefined"){ return new XMLHttpRequest();}else if(window.ActiveXObject){ var aVersions=[ "MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp" ]; for(var i=0;i0)?'&'+this.makePostReq(post_data):''));oXmlHttp.onreadystatechange=function(){ if(oXmlHttp.readyState==4){if(oXmlHttp.status==200){ iajax.checkCache(); iajax.respons[iajax.respons.length]={request:request_uri+'|'+post_data,rText:oXmlHttp.responseText }; resText=oXmlHttp.responseText; eval(to);}else{ resText='
'+oXmlHttp.status+':

'+oXmlHttp.status+'

Да! это ошибка.Вернитесь на главную
%span%%span%Упс...%span%'; eval(to);} }} }, post:function(request_uri,post_data,to){resText=this.getFromCache(request_uri+'|'+post_data);if(resText){ eval(to);}else{ this.send(request_uri,post_data,to);} }, getFromCache:function(rq){var val=false;for(i=this.respons.length-1;i>=0;i--){ if(this.respons[i].request==rq && this.respons[i].rText.indexOf('%span%NoCache')==-1){val=this.respons[i].rText; }}return val; }, getLastResult:function(num){if(!num)num=1;if(this.respons.length-num>=0){ return this.respons[this.respons.length-num].rText;}else{ return false;} }, clearCache:function(num){this.respons=new Array(); }, checkCache:function(){if(this.respons.length>=this.max_cache){ tresp=new Array(); for(i=0;i<50;i++)tresp[i]=this.respons[this.respons.length-i-1]; this.respons=tresp;} }, makePostReq:function(post){var query=post.split('&');for(i=0;i