var a;function popup(b,c,d,e){(b=window.open(b,e,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+c+",height="+d))&&b.focus()}function SubmitForm(b){document.forms[b].submit()}function Show(b){b=document.getElementById(b);b.style.display=b.offsetWidth?"none":"block"}function hasClassName(b,c){return(""+b.className).indexOf(c)>-1}function getStyle(b,c){return b.currentStyle?b.currentStyle[c]:document.defaultView.getComputedStyle(b,null)[c]} function getPosition(b){var c=0,d=0;do{c+=b.offsetLeft;d+=b.offsetTop}while(b=b.offsetParent);return{x:c,y:d}}function tgl(b,c){if(b.className.indexOf(c)<0)b.className+=" "+c;else b.className=b.className.split(c).join("");return true}function DivPopup(b,c){this.activeClass=b;this.opened=null;this.substrOffsetLeft=9;this.substrOffsetTop=7;this.popupDivClass=c;this.control_el=null}a=DivPopup.prototype; a.click=function(b,c){this.control_el=b;this.opened&&this.opened!=c&&this.close(this.opened);this.opened=c;this.isActive(c)?this.close(c):this.open(c)}; a.open=function(b){this.addClass(b,this.activeClass);var c=this.findDiv(b);if(this.control_el.offsetWidth+this.substrOffsetLeft>c.offsetWidth)c.style.width=this.control_el.offsetWidth+"px";c.style.left=this.control_el.offsetLeft-this.substrOffsetLeft+"px";c.style.top=this.control_el.offsetTop-this.substrOffsetTop+"px";b.style.zIndex=10;b.parentNode.parentNode.parentNode.style.zIndex=1000}; a.close=function(b){this.removeClass(b,this.activeClass);b.style.zIndex=0;b.parentNode.parentNode.parentNode.style.zIndex=0};a.isActive=function(b){if(b||b.className)return b.className.indexOf(this.activeClass)>-1};a.findDiv=function(b){els=b.childNodes;for(b=els.length;b--;)if(hasClassName(els[b],this.popupDivClass))return els[b]};a.blur=function(){this.close(this.opened)};a.removeClass=function(b,c){b.className=b.className.split(c).join("")};a.addClass=function(b,c){b.className+=" "+c}; function ShowAnswer(b){close_els=b.parentNode.parentNode.childNodes;for(var c=close_els.length;c--;)if(close_els[c].tagName=="LI")close_els[c].className="";li_el=b.parentNode;li_el.className=li_el.className?"":"active"} function PaymentTypeSwitch(b,c){els=document.getElementById("currency_types").childNodes;for(b=els.length;b--;)if(els[b].tagName=="DIV"&&els[b].className){els[b].style.display="none";if(els[b].className.split(" ")[0]==c)els[b].style.display="block"}if(c=="ym"){document.getElementById("name_f").style.display="none";document.getElementById("text_amount").style.display="none";document.getElementById("submit_f").style.display="none"}else{document.getElementById("name_f").style.display="inline";document.getElementById("text_amount").style.display= "inline";document.getElementById("submit_f").style.display="inline"}document.getElementById("sum_dollar").style.display="none"}function tglUserVpnInfo(b,c){f=b;do f=f.parentNode;while(f.nodeName.toLowerCase()!="form");b.className.indexOf(c)<0?(f.consider_uservpn_info.value=1):(f.consider_uservpn_info.value=0);return tgl(b,c)} function sendLetterSubscr(b,c){var d="/ajax/ajax_send_letter_subscr.php";b="id_subscr="+b+"&locale="+c+"&rnd="+Math.random();d=new Ajax.Request(d,{method:"get",parameters:b,onComplete:showAnswerSendLetter})}function showAnswerSendLetter(b){document.getElementById("message_letter").innerHTML=b.responseText;document.getElementById("message_success").style.display="block"} function dumpSession(b,c){if(c=="ru")document.getElementById("disconnect_"+b).innerHTML="\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435. \u0418\u0434\u0435\u0442 \u0441\u0431\u0440\u043e\u0441 \u0441\u0435\u0441\u0441\u0438\u0438.";else document.getElementById("disconnect_"+b).innerHTML="Please wait. We are dropping you session.";var d="/ajax/ajax_dump_session.php";b="id_subscr="+b+"&locale="+c+"&rnd="+Math.random();d=new Ajax.Request(d, {method:"get",parameters:b,onComplete:showAnswerDumpSession})} function showAnswerDumpSession(b){b=b.responseText.split("^");if(b[0]==1){document.getElementById("online_"+b[2]).innerHTML=' <img src="/images/en_red.gif"> (Off-Line)';document.getElementById("message_letter").innerHTML=b[1];document.getElementById("message_success").style.display="block";document.getElementById("disconnect_"+b[2]).style.display="none"}else{document.getElementById("message_letter").innerHTML=b[1];document.getElementById("message_success").style.display="block"}} function changeOs(b,c,d){var e="/ajax/ajax_change_os.php";b="id_subscr="+b+"&os="+c+"&locale="+d+"&rnd="+Math.random();e=new Ajax.Request(e,{method:"get",parameters:b,onComplete:showAnswerChangeOs})}function showAnswerChangeOs(b){document.getElementById("message_letter").innerHTML=b.responseText;document.getElementById("message_success").style.display="block"} function changeActiveIp(b,c,d){var e="/ajax/ajax_change_active_ip.php";b="id_subscr="+c+"&id_ip="+b+"&locale="+d+"&rnd="+Math.random();e=new Ajax.Request(e,{method:"get",parameters:b,onComplete:showChangeActiveIp});document.getElementById("span_ext_"+c+"_1").className="clearfix"}function showChangeActiveIp(b){if(b.responseText){b=b.responseText.split("^");document.getElementById(b[0]).innerHTML=b[1]}} function changeFirewall(b,c,d){var e="/ajax/ajax_change_firewall.php";b="id_subscr="+c+"&id_scheme="+b+"&locale="+d+"&rnd="+Math.random();e=new Ajax.Request(e,{method:"get",parameters:b,onComplete:showChangeFirewall});document.getElementById("span_ext_"+c+"_3").className="clearfix"}function showChangeFirewall(b){if(b.responseText){b=b.responseText.split("^");document.getElementById(b[0]).innerHTML=b[1]}} function changeAnonimProxy(b,c,d){var e="/ajax/ajax_change_anonimproxy.php";b="id_subscr="+c+"&id_scheme="+b+"&locale="+d+"&rnd="+Math.random();e=new Ajax.Updater("span_ext_"+c+"_2",e,{method:"get",parameters:b});document.getElementById("span_ext_"+c+"_2").className="clearfix"} function changeGroupRole(b,c,d,e){var g="/ajax/ajax_change_group_role.php";b="id_subscr="+c+"&id_group="+b+"&role="+d+"&locale="+e+"&rnd="+Math.random();g=new Ajax.Request(g,{method:"get",parameters:b,onComplete:showAnswerSendLetter})}function changeStatus(b,c,d){var e="/ajax/ajax_change_status.php";b="id_subscr="+b+"&id_ext="+c+"&locale="+d+"&rnd="+Math.random();e=new Ajax.Request(e,{method:"get",parameters:b,onComplete:showChangeStatus})} function showChangeStatus(b){if(b.responseText){b=b.responseText.split("^");document.getElementById(b[0]).innerHTML=b[1]}}function getChems(b){var c="/ajax/ajax_get_chems.php";b="id_ext="+b+"&rnd="+Math.random();c=new Ajax.Request(c,{method:"get",parameters:b,onComplete:showChem})}function showChem(b){document.getElementById("id_select").innerHTML=b.responseText;document.getElementById("id_shema").style.display="block"} function saveComment(b,c){var d=document.getElementById("comment_f_"+b).value,e="/ajax/ajax_save_comment.php";c="id_subscr="+b+"&comment="+d+"&locale="+c+"&rnd="+Math.random();e=new Ajax.Request(e,{method:"post",parameters:c});document.getElementById("ext_comment_"+b).innerHTML=d} function addCellIndividual(b){var c=document.getElementById("body_individual");c.appendChild(document.createElement("TR"));c=c.lastChild;b=b+1;c.innerHTML="<td><input type='text' name='ip_source[]' size='15'>&nbsp;:&nbsp;<input type='text' name='port_source[]' size='5'></td><td><input type='text' name='ip_receiv[]' size='15'>&nbsp;:&nbsp;<input type='text' name='port_receiv[]' size='5'></td><td><select name='operation[]'><option value='take'>\u041f\u0440\u0438\u043d\u044f\u0442\u044c</option><option value='forbid'>\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c</option></select></td><td><select name='protocol[]'><option value=''>\u041b\u044e\u0431\u043e\u0439</option><option value='tcp'>TCP</option><option value='udp'>UDP</option><option value='icmp'>ICMP</option></select></td><td id='cell_td_"+b+ "'><a href='Javascript:delCellIndividual("+b+");'><img src='/images/delete.gif' alt='\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e' title='\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u043e' width='11' height='11'></a></td>";c.setAttribute("id","cell_"+b)}function delCellIndividual(b){var c=document.getElementById("body_individual");b=document.getElementById("cell_"+b);c.removeChild(b)} function getWhoise(b){var c=document.forms.whois,d=c.name.value,e="";c=c.type;for(var g=c.length;g--;)if(c[g].name=="type"&&c[g].checked==true)e=c[g].value;if(!e){if(b=="en")document.getElementById("results").innerHTML="Please choose the type of services.";else document.getElementById("results").innerHTML="\u0412\u044b \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0442\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430";return false}if(b=="en")document.getElementById("results").innerHTML= "Please wait...";else document.getElementById("results").innerHTML="\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435 \u0438\u0434\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440...";c="/ajax/ajax_get_whois.php";b="type="+e+"&name="+d+"&locale="+b+"&rnd="+Math.random();b=new Ajax.Request(c,{method:"post",parameters:b,onComplete:showWhois})} function showWhois(b){b=b.responseText.split("^^^");document.getElementById("results").innerHTML=b[0];document.getElementById("result_header").innerHTML=b[1]} function checkInput(b,c){if(document.all&&!window.opera){if((c.keyCode<48||c.keyCode>57)&&c.keyCode!=46)return false;if(c.keyCode==46&&b.value.indexOf(".")>=0)return false;if(c.keyCode==46&&b.value=="")return false}else{if(c.keyCode>=33&&c.keyCode<=40||c.keyCode==45||c.keyCode==46||c.keyCode==8||c.keyCode==9||c.keyCode==13||c.keyCode==27)return true;if((c.which<48||c.which>57)&&c.which!=46)return false;if(c.which==46&&b.value.indexOf(".")>=0)return false;if(c.which==46&&b.value=="")return false}return true} function Calculate(b){if(b){for(var c=0,d=document.forms.balance,e=d.id_payment_type,g=e.length;g--;)if(e[g].name=="id_payment_type"&&e[g].checked==true)type=e[g].value;if(type==2||type==6)c=1;else if(type==1){e=d.currency_type;for(g=e.length;g--;)if(e[g].name=="currency_type"&&e[g].checked==true)currency=e[g].value;if(currency==2)c=1}if(c==1){c=Number(d.course.value);b=Math.ceil(Number(b/c)*100)/100;document.getElementById("sum_dollar").innerHTML="&nbsp;&nbsp;&nbsp;"+b+"$";document.getElementById("sum_dollar").style.display= "inline"}else document.getElementById("sum_dollar").style.display="none"}}function callcenter_rate(b,c){var d="/ajax/ajax_callcenter_rate.php";b="id_question="+b+"&rate="+c+"&rnd="+Math.random();d=new Ajax.Request(d,{method:"get",parameters:b,onComplete:showResponseCallcenterRate})} function showResponseCallcenterRate(){var b=document.getElementById("locale_hid").value;if(b=="ru")document.getElementById("callcenter_rate").innerHTML='<div class="success"><div class="ico_pad"><div>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438! \u0412\u0430\u0448 \u0433\u043e\u043b\u043e\u0441 \u0432\u0430\u0436\u0435\u043d \u0434\u043b\u044f \u043d\u0430\u0441.</div></div></div>';else document.getElementById("callcenter_rate").innerHTML= '<div class="success"><div class="ico_pad"><div>Thank you for the voting! We appreciate you time.</div></div></div>'}function changeServer(b,c,d){var e="/ajax/ajax_change_server.php";b="id_subscr="+b+"&server="+c+"&locale="+d+"&rnd="+Math.random();e=new Ajax.Request(e,{method:"get",parameters:b,onComplete:showResponseChangeServer})} function showResponseChangeServer(b){document.getElementById("message_letter").innerHTML=b.responseText;document.getElementById("message_success").style.display="block"}function checkEuropaConnect(){var b="/ajax/ajax_check_statusevropa.php",c="rnd="+Math.random();b=new Ajax.Request(b,{method:"get",parameters:c,onComplete:showResponseCheckEuropaConnect})} function showResponseCheckEuropaConnect(b){if(b.responseText){b=b.responseText.split("#");var c=document.getElementById("locale_hid").value;for(i=0;i<b.length;i++){var d=b[i];d=d.split("^");var e=document.getElementById("online_"+d[0]);if(d[1]==0)e.innerHTML='<img src="/images/en_gray.gif"> (Unknown)';else if(d[1]==1){e.innerHTML='<img src="/images/en_green.gif"> (On-Line)';e=document.getElementById("disconnect_block_"+d[0]);e.innerHTML=c=="en"?'<span><img src="/images/gray_dots2.gif" width="1" height="19"></span><span id="disconnect_'+ d[0]+'"><img src="/images/ico_disconnect.gif" width="15" height="16" alt="Reset session">&nbsp;<a class="disconnect" href="Javascript:dumpSession('+d[0]+",'en');\">Reset session</a></span>":'<span><img src="/images/gray_dots2.gif" width="1" height="19"></span><span id="disconnect_'+d[0]+'"><img src="/images/ico_disconnect.gif" width="15" height="16" alt="\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e">&nbsp;<a class="disconnect" href="Javascript:dumpSession('+ d[0]+",'en');\">\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e</a></span>"}else if(d[1]==2)e.innerHTML='<img src="/images/en_red.gif"> (Off-Line)'}}};