Warning: Undefined array key "HTTP_REFERER" in /var/www/u1787038/data/www/xn----7sbabyjgfqyhugk2czd.xn--p1ai/index.php on line 4
function CAjaxThread(e){this.TID=e;this.httpRequest=this._CreateHttpObject();this.arAction=[]}CAjaxThread.prototype._CreateHttpObject=function(){var e=null;if(window.XMLHttpRequest){try{e=new XMLHttpRequest}catch(t){}}else if(window.ActiveXObject){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}if(!e)try{e=new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}}return e};CAjaxThread.prototype.addAction=function(e){this.arAction.push(e)};CAjaxThread.prototype.clearActions=function(){this.arAction=[]};CAjaxThread.prototype.nextAction=function(){return this.arAction.shift()};CAjaxThread.prototype.Clear=function(){this.arAction=null;this.httpRequest=null};function CAjax(){this.arThreads={};this.obTemporary=null}CAjax.prototype._PrepareData=function(e,t){var n="";if(null!=e){for(var o in e){if(n.length>0)n+="&";var i=jsAjaxUtil.urlencode(o);if(t)i=t+"["+i+"]";if(typeof e[o]=="object")n+=this._PrepareData(e[o],i);else n+=i+"="+jsAjaxUtil.urlencode(e[o])}}return n};CAjax.prototype.GetThread=function(e){return this.arThreads[e]};CAjax.prototype.InitThread=function(){while(true){var e="TID"+Math.floor(Math.random()*1e6);if(!this.arThreads[e])break}this.arThreads[e]=new CAjaxThread(e);return e};CAjax.prototype.AddAction=function(e,t){if(this.arThreads[e]){this.arThreads[e].addAction(t)}};CAjax.prototype._OnDataReady=function(e,t){if(!this.arThreads[e])return;while(obHandler=this.arThreads[e].nextAction()){obHandler(t)}};CAjax.prototype._Close=function(e){if(!this.arThreads[e])return;this.arThreads[e].Clear();this.arThreads[e]=null};CAjax.prototype._SetHandler=function(e){var t=this;function n(n){if(!n)n=window.event;if(!n)return;if(n.keyCode==27){t._Close(e);jsEvent.removeEvent(document,"keypress",this)}}function o(){if(t.bCancelled)return;if(!t.arThreads[e])return;if(!t.arThreads[e].httpRequest)return;if(t.arThreads[e].httpRequest.readyState==4){var n=t.arThreads[e].httpRequest.getResponseHeader("X-Bitrix-Ajax-Status");var o=n=="Redirect";var i=t.arThreads[e].httpRequest.responseText;jsAjaxParser.mode="implode";i=jsAjaxParser.process(i);if(!o)t._OnDataReady(e,i);t.__prepareOnload();if(jsAjaxParser.code.length>0)jsAjaxUtil.EvalPack(jsAjaxParser.code);t.__runOnload();t._Close(e)}}this.arThreads[e].httpRequest.onreadystatechange=o;jsEvent.addEvent(document,"keypress",n)};CAjax.prototype.__prepareOnload=function(){this.obTemporary=window.onload;window.onload=null};CAjax.prototype.__runOnload=function(){if(window.onload)window.onload();window.onload=this.obTemporary;this.obTemporary=null};CAjax.prototype.Send=function(e,t,n){if(!this.arThreads[e])return;if(null!=n)var o=this._PrepareData(n);else var o="";if(o.length>0){if(t.indexOf("?")==-1)t+="?"+o;else t+="&"+o}if(this.arThreads[e].httpRequest){this.arThreads[e].httpRequest.open("GET",t,true);this._SetHandler(e);return this.arThreads[e].httpRequest.send("")}};CAjax.prototype.Post=function(e,t,n){var o="";if(null!=n)o=this._PrepareData(n);if(this.arThreads[e].httpRequest){this.arThreads[e].httpRequest.open("POST",t,true);this._SetHandler(e);this.arThreads[e].httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");return this.arThreads[e].httpRequest.send(o)}};function CAjaxForm(e,t,n){this.obForm=e;this.obHandler=t;this.obFrame=null;this.isFormProcessed=false;if(null==n)this.bFirst=false;else this.bFirst=n;this.__tmpFormTarget="";this.obAJAXIndicator=null;this.currentBrowserDetected="";if(window.opera)this.currentBrowserDetected="Opera";else if(navigator.userAgent){if(navigator.userAgent.indexOf("MSIE")!=-1)this.currentBrowserDetected="IE";else if(navigator.userAgent.indexOf("Firefox")!=-1)this.currentBrowserDetected="Firefox"}this.IsIE9=!!document.documentMode&&document.documentMode>=9}CAjaxForm.prototype.setProcessedFlag=function(e){if(null==e)e=true;else e=e?true:false;this.obForm.bxAjaxProcessed=e;this.isFormProcessed=e};CAjaxForm.isFormProcessed=function(e){if(e.bxAjaxProcessed)return e.bxAjaxProcessed;else return false};CAjaxForm.prototype.process=function(){var e=this;function t(){if(!e.obFrame.contentWindow.document||e.obFrame.contentWindow.document.body.innerHTML.length==0)return;if(null!=e.obHandler){e.obHandler(e.obFrame.contentWindow.document.body.innerHTML)}if(e.obFrame.contentWindow.AJAX_runExternal)e.obFrame.contentWindow.AJAX_runExternal();if(e.obFrame.contentWindow.AJAX_runGlobal)e.obFrame.contentWindow.AJAX_runGlobal();if(e.bFirst){try{e.obForm.target=e.__tmpFormTarget;e.obAJAXIndicator.parentNode.removeChild(e.obAJAXIndicator);e.obForm.bxAjaxProcessed=false}catch(t){e.obForm=null}e.obAJAXIndicator=null;if(this.currentBrowserDetected!="IE")jsEvent.removeAllEvents(e.obFrame);var n=setTimeout("document.body.removeChild(document.getElementById('"+e.obFrame.id+"'));",100);e.obFrame=null;if(window.onFormLoaded){window.onFormLoaded();window.onFormLoaded=null}}}if(this.obForm.target&&this.obForm.target.substring(0,5)=="AJAX_")return;if(this.currentBrowserDetected=="IE"){if(this.IsIE9){this.obAJAXIndicator=document.createElement("input");this.obAJAXIndicator.setAttribute("name","AJAX_CALL");this.obAJAXIndicator.setAttribute("type","hidden")}else{this.obAJAXIndicator=document.createElement('')}}else{this.obAJAXIndicator=document.createElement("INPUT");this.obAJAXIndicator.type="hidden";this.obAJAXIndicator.name="AJAX_CALL"}this.obAJAXIndicator.value="Y";this.obForm.appendChild(this.obAJAXIndicator);var n="AJAX_"+Math.round(Math.random()*1e5);if(this.currentBrowserDetected=="IE")if(this.IsIE9){this.obFrame=document.createElement("iframe");this.obFrame.setAttribute("name",n)}else{this.obFrame=document.createElement('')}else this.obFrame=document.createElement("IFRAME");this.obFrame.style.display="none";this.obFrame.src="javascript:''";this.obFrame.id=n;this.obFrame.name=n;document.body.appendChild(this.obFrame);this.__tmpFormTarget=this.obForm.target;this.obForm.target=n;if(this.currentBrowserDetected=="IE")this.obFrame.attachEvent("onload",t);else jsEvent.addEvent(this.obFrame,"load",t);this.setProcessedFlag()};var jsAjaxParser={code:[],mode:"implode",regexp:null,regexp_src:null,process:function(e){this.code=[];if(null==this.regexp)this.regexp=/(]*)>)([\S\s]*?)(<\/script>)/i;do{var t=e.match(this.regexp);if(null==t)break;var n=t.index;var o=t[0].length;if(n>0)this.code.push({TYPE:"STRING",DATA:e.substring(0,n)});if(typeof t[1]=="undefined"||t[1].indexOf("src=")==-1){var i=t[3];i=i.replace("