");$.ajax({cache:'false',type:'POST',url:'/../php_scripts/ajax_backend.php',dataType:'json',data:'act=survey&id='+idRadio,success:function(data){$("#omfg_survey").html("");$("#omfg_survey").html(""+data['answer']+"");setCookie('survey_asgwerwr',idForm,"Thu, 03-Jan-22 00:00:01 GMT");},error:function(data,textStatus,errorThrown){}});}
(function($,c,b){$.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup".split(" "),function(d){a(d)});a("focusin","focus"+b);a("focusout","blur"+b);$.addOutsideEvent=a;function a(g,e){e=e||g+b;var d=$(),h=g+"."+e+"-special-event";$.event.special[e]={setup:function(){d=d.add(this);if(d.length===1){$(c).bind(h,f)}},teardown:function(){d=d.not(this);if(d.length===0){$(c).unbind(h)}},add:function(i){var j=i.handler;i.handler=function(l,k){l.target=k;j.apply(this,arguments)}}};function f(i){$(d).each(function(){var j=$(this);if(this!==i.target&&!j.has(i.target).length){j.triggerHandler(e,[i.target])}})}}})(jQuery,document,"outside");$(document).ready(function(){$(".top_lk_login_block").click(function(){var body=$(".top_lk_login_form");if(body.is(":hidden")){body.fadeIn();return false;}});});$(function(){$(".top_lk_login_form").bind("clickoutside",function(event){$(this).fadeOut();});});$(document).ready(function(){$(".top_search_ico").click(function(){var body=$(".top_lk_search_form");if(body.is(":hidden")){body.fadeIn();InputConnect($('.yaform__input-text'),$('.to_yandex'));return false;}});});$('.to_yandex').live('keydown',function(event){InputConnect($('.yaform__input-text'),$('.to_yandex'));if(event.keyCode==13){$('.yaform__form').submit();}});$('.search_btn_enter').live('click',function(){$('.yaform__form').submit();});$(function(){$(".top_lk_search_form").bind("clickoutside",function(event){$(this).fadeOut();});});$('.modal_btn_active').live({click:function(){$('#modal_form').submit();}});$('.modal_login_btn').live({click:function(){$('#auth1').submit();}});$(document).ready(function(){$(".top_lk_reg_block").click(function(){showCModal("modal");});});$(document).ready(function(){$('#m_password').keyup(function(){$('.modal_secure_pass').html(passwordStrength($('#m_password').val(),$('#m_email').val()))})
$('#m_password_fake').keyup(function(){$('.modal_secure_pass').html(passwordStrength($('#m_password').val(),$('#m_email').val()))})
var empattern=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/i;var mail=$('#m_email');mail.blur(function(){if(mail.val()!=''){if(mail.val().search(empattern)==0){$('.modal_email_err').html('
ÐÑлиÑнÑй e-mail ');}else{$('.modal_email_err').text('ÐÑо не e-mail');}}else{$('.modal_email_err').text('E-mail не должен бÑÑÑ Ð¿ÑÑÑÑм');}});SHPConnect($('#m_password'),$('#m_password_fake'));$('.modal_input input').bind({click:function(){formValidation()},mouseenter:function(){formValidation()},keyup:function(){formValidation()},blur:function(){formValidation()},});});function formValidation(){var t1ck=true;var msg=" ";var empattern=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/i;var emailval=$('#m_email').val();if($('#m_password').val()<3){t1ck=false;msg=msg+"ÐоÑоÑкий паÑолÑ";}
if(emailval!=''){if(emailval.search(empattern)==0){}else{t1ck=false;msg=msg+"мÑло не пÑоÑ
Ð¾Ð´Ð¸Ñ Ð²Ð°Ð»Ð¸Ð´Ð°ÑиÑ";}}else{t1ck=false;msg=msg+"мÑло пÑÑÑое";}
if($('#pass_ok:checkbox:checked').val()!='on'){t1ck=false;msg=msg+"Ðе ÑоглаÑен Ñ Ð¿Ð°Ñолем";}
if($('#m_nickname').val()<3){t1ck=false;msg=msg+"ÐоÑоÑкое имÑ";}
if(t1ck){$(".modal_btn_inactive").removeClass("modal_btn_inactive").addClass("modal_btn_active");}
else{$(".modal_btn_active").removeClass("modal_btn_active").addClass("modal_btn_inactive");}}
function SHPConnect(password,text)
{password.change(function(eventObject){text.attr('value',password.attr('value'));});$(text).change(function(eventObject){password.attr('value',text.attr('value'));});}
function InputConnect(firstinput,text)
{firstinput.live('keyup',function(eventObject){text.attr('value',firstinput.attr('value'));});text.live('keyup',function(eventObject){firstinput.attr('value',text.attr('value'));});}
function SHPtoggle()
{if($('#m_password').css('display')=='none'){$('#m_password_fake').hide();$('#m_password').show();$('.modal_pass_show').text('ÐоÑмоÑÑеÑÑ Ð±ÑквÑ');$('.modal_pass_show').show();}
else{$('#m_password').hide();$('#m_password_fake').show();$('.modal_pass_show').text('СпÑÑÑаÑÑ Ð±ÑквÑ');$('.modal_pass_show').show();}}
$('.modal_btn_active').live({click:function(){$('#modal_form').submit();},});$('.err_login_btn').live({click:function(){$('#auth_err').submit();},});$('#restore_btn').live({click:function(){$('#restore_pass_form').submit();},});$('#confirm_code_btn').live({click:function(){$('#confirm_code_form').submit();},});$(document).ready(function(){$("img").error(function(){$(this).attr("src","/img/missing.png");})});function userselectbyphotogr(){var useridname=$('#search_user_login').attr('value');selectUserOnImage(useridname);};;(function($){var ie6=$.browser.msie&&parseInt($.browser.version)===6&&typeof window['XMLHttpRequest']!=='object',ie7=$.browser.msie&&parseInt($.browser.version)===7,ieQuirks=null,w=[];$.modal=function(data,options){return $.modal.impl.init(data,options);};$.modal.close=function(){$.modal.impl.close();};$.modal.focus=function(pos){$.modal.impl.focus(pos);};$.modal.setContainerDimensions=function(){$.modal.impl.setContainerDimensions();};$.modal.setPosition=function(){$.modal.impl.setPosition();};$.modal.update=function(height,width){$.modal.impl.update(height,width);};$.fn.modal=function(options){return $.modal.impl.init(this,options);};$.modal.defaults={appendTo:'body',focus:true,opacity:50,overlayId:'simplemodal-overlay',overlayCss:{},containerId:'simplemodal-container',containerCss:{},dataId:'simplemodal-data',dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'
',closeClass:'simplemodal-close',escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};$.modal.impl={d:{},init:function(data,options){var s=this;if(s.d.data){return false;}
ieQuirks=$.browser.msie&&!$.boxModel;s.o=$.extend({},$.modal.defaults,options);s.zIndex=s.o.zIndex;s.occb=false;if(typeof data==='object'){data=data instanceof jQuery?data:$(data);s.d.placeholder=false;if(data.parent().parent().size()>0){data.before($('
').attr('id','simplemodal-placeholder').css({display:'none'}));s.d.placeholder=true;s.display=data.css('display');if(!s.o.persist){s.d.orig=data.clone(true);}}}
else if(typeof data==='string'||typeof data==='number'){data=$('
').html(data);}
else{alert('SimpleModal Error: Unsupported data type: '+typeof data);return s;}
s.create(data);data=null;s.open();if($.isFunction(s.o.onShow)){s.o.onShow.apply(s,[s.d]);}
return s;},create:function(data){var s=this;w=s.getDimensions();if(s.o.modal&&ie6){s.d.iframe=$('
').css($.extend(s.o.iframeCss,{display:'none',opacity:0,position:'fixed',height:w[0],width:w[1],zIndex:s.o.zIndex,top:0,left:0})).appendTo(s.o.appendTo);}
s.d.overlay=$('
').attr('id',s.o.overlayId).addClass('simplemodal-overlay').css($.extend(s.o.overlayCss,{display:'none',opacity:s.o.opacity/100,height:s.o.modal?w[0]:0,width:s.o.modal?w[1]:0,position:'fixed',left:0,top:0,zIndex:s.o.zIndex+1})).appendTo(s.o.appendTo);s.d.container=$('
').attr('id',s.o.containerId).addClass('simplemodal-container').css($.extend(s.o.containerCss,{display:'none',position:'fixed',zIndex:s.o.zIndex+2})).append(s.o.close&&s.o.closeHTML?$(s.o.closeHTML).addClass(s.o.closeClass):'').appendTo(s.o.appendTo);s.d.wrap=$('
').attr('tabIndex',-1).addClass('simplemodal-wrap').css({height:'100%',outline:0,width:'100%'}).appendTo(s.d.container);s.d.data=data.attr('id',data.attr('id')||s.o.dataId).addClass('simplemodal-data').css($.extend(s.o.dataCss,{display:'none'})).appendTo('body');data=null;s.setContainerDimensions();s.d.data.appendTo(s.d.wrap);if(ie6||ieQuirks){s.fixIE();}},bindEvents:function(){var s=this;$('.'+s.o.closeClass).bind('click.simplemodal',function(e){e.preventDefault();s.close();});if(s.o.modal&&s.o.close&&s.o.overlayClose){s.d.overlay.bind('click.simplemodal',function(e){e.preventDefault();s.close();});}
$(document).bind('keydown.simplemodal',function(e){if(s.o.modal&&e.keyCode===9){s.watchTab(e);}
else if((s.o.close&&s.o.escClose)&&e.keyCode===27){e.preventDefault();s.close();}});$(window).bind('resize.simplemodal',function(){w=s.getDimensions();s.o.autoResize?s.setContainerDimensions():s.o.autoPosition&&s.setPosition();if(ie6||ieQuirks){s.fixIE();}
else if(s.o.modal){s.d.iframe&&s.d.iframe.css({height:w[0],width:w[1]});s.d.overlay.css({height:w[0],width:w[1]});}});},unbindEvents:function(){$('.'+this.o.closeClass).unbind('click.simplemodal');$(document).unbind('keydown.simplemodal');$(window).unbind('resize.simplemodal');this.d.overlay.unbind('click.simplemodal');},fixIE:function(){var s=this,p=s.o.position;$.each([s.d.iframe||null,!s.o.modal?null:s.d.overlay,s.d.container],function(i,el){if(el){var bch='document.body.clientHeight',bcw='document.body.clientWidth',bsh='document.body.scrollHeight',bsl='document.body.scrollLeft',bst='document.body.scrollTop',bsw='document.body.scrollWidth',ch='document.documentElement.clientHeight',cw='document.documentElement.clientWidth',sl='document.documentElement.scrollLeft',st='document.documentElement.scrollTop',s=el[0].style;s.position='absolute';if(i<2){s.removeExpression('height');s.removeExpression('width');s.setExpression('height',''+bsh+' > '+bch+' ? '+bsh+' : '+bch+' + "px"');s.setExpression('width',''+bsw+' > '+bcw+' ? '+bsw+' : '+bcw+' + "px"');}
else{var te,le;if(p&&p.constructor===Array){var top=p[0]?typeof p[0]==='number'?p[0].toString():p[0].replace(/px/,''):el.css('top').replace(/px/,'');te=top.indexOf('%')===-1?top+' + (t = '+st+' ? '+st+' : '+bst+') + "px"':parseInt(top.replace(/%/,''))+' * (('+ch+' || '+bch+') / 100) + (t = '+st+' ? '+st+' : '+bst+') + "px"';if(p[1]){var left=typeof p[1]==='number'?p[1].toString():p[1].replace(/px/,'');le=left.indexOf('%')===-1?left+' + (t = '+sl+' ? '+sl+' : '+bsl+') + "px"':parseInt(left.replace(/%/,''))+' * (('+cw+' || '+bcw+') / 100) + (t = '+sl+' ? '+sl+' : '+bsl+') + "px"';}}
else{te='('+ch+' || '+bch+') / 2 - (this.offsetHeight / 2) + (t = '+st+' ? '+st+' : '+bst+') + "px"';le='('+cw+' || '+bcw+') / 2 - (this.offsetWidth / 2) + (t = '+sl+' ? '+sl+' : '+bsl+') + "px"';}
s.removeExpression('top');s.removeExpression('left');s.setExpression('top',te);s.setExpression('left',le);}}});},focus:function(pos){var s=this,p=pos&&$.inArray(pos,['first','last'])!==-1?pos:'first';var input=$(':input:enabled:visible:'+p,s.d.wrap);setTimeout(function(){input.length>0?input.focus():s.d.wrap.focus();},10);},getDimensions:function(){var el=$(window);var h=$.browser.opera&&$.browser.version>'9.5'&&$.fn.jquery<'1.3'||$.browser.opera&&$.browser.version<'9.5'&&$.fn.jquery>'1.2.6'?el[0].innerHeight:el.height();return[h,el.width()];},getVal:function(v,d){return v?(typeof v==='number'?v:v==='auto'?0:v.indexOf('%')>0?((parseInt(v.replace(/%/,''))/100)*(d==='h'?w[0]:w[1])):parseInt(v.replace(/px/,''))):null;},update:function(height,width){var s=this;if(!s.d.data){return false;}
s.d.origHeight=s.getVal(height,'h');s.d.origWidth=s.getVal(width,'w');s.d.data.hide();height&&s.d.container.css('height',height);width&&s.d.container.css('width',width);s.setContainerDimensions();s.d.data.show();s.o.focus&&s.focus();s.unbindEvents();s.bindEvents();},setContainerDimensions:function(){var s=this,badIE=ie6||ie7;var ch=s.d.origHeight?s.d.origHeight:$.browser.opera?s.d.container.height():s.getVal(badIE?s.d.container[0].currentStyle['height']:s.d.container.css('height'),'h'),cw=s.d.origWidth?s.d.origWidth:$.browser.opera?s.d.container.width():s.getVal(badIE?s.d.container[0].currentStyle['width']:s.d.container.css('width'),'w'),dh=s.d.data.outerHeight(true),dw=s.d.data.outerWidth(true);s.d.origHeight=s.d.origHeight||ch;s.d.origWidth=s.d.origWidth||cw;var mxoh=s.o.maxHeight?s.getVal(s.o.maxHeight,'h'):null,mxow=s.o.maxWidth?s.getVal(s.o.maxWidth,'w'):null,mh=mxoh&&mxoh
mh){ch=mh;}
else if(s.o.minHeight&&moh!=='auto'&&dhmh?mh:chmw){cw=mw;}
else if(s.o.minWidth&&mow!=='auto'&&dwmw?mw:cwch||dw>cw)?'auto':'visible'});s.o.autoPosition&&s.setPosition();},setPosition:function(){var s=this,top,left,hc=(w[0]/2)-(s.d.container.outerHeight(true)/2),vc=(w[1]/2)-(s.d.container.outerWidth(true)/2);if(s.o.position&&Object.prototype.toString.call(s.o.position)==='[object Array]'){top=s.o.position[0]||hc;left=s.o.position[1]||vc;}else{top=hc;left=vc;}
s.d.container.css({left:left,top:top});},watchTab:function(e){var s=this;if($(e.target).parents('.simplemodal-container').length>0){s.inputs=$(':input:enabled:visible:first, :input:enabled:visible:last',s.d.data[0]);if((!e.shiftKey&&e.target===s.inputs[s.inputs.length-1])||(e.shiftKey&&e.target===s.inputs[0])||s.inputs.length===0){e.preventDefault();var pos=e.shiftKey?'last':'first';s.focus(pos);}}
else{e.preventDefault();s.focus();}},open:function(){var s=this;s.d.iframe&&s.d.iframe.show();if($.isFunction(s.o.onOpen)){s.o.onOpen.apply(s,[s.d]);}
else{s.d.overlay.show();s.d.container.show();s.d.data.show();}
s.o.focus&&s.focus();s.bindEvents();},close:function(){var s=this;if(!s.d.data){return false;}
s.unbindEvents();if($.isFunction(s.o.onClose)&&!s.occb){s.occb=true;s.o.onClose.apply(s,[s.d]);}
else{if(s.d.placeholder){var ph=$('#simplemodal-placeholder');if(s.o.persist){ph.replaceWith(s.d.data.removeClass('simplemodal-data').css('display',s.display));}
else{s.d.data.hide().remove();ph.replaceWith(s.d.orig);}}
else{s.d.data.hide().remove();}
s.d.container.hide().remove();s.d.overlay.hide();s.d.iframe&&s.d.iframe.hide().remove();setTimeout(function(){s.d.overlay.remove();s.d={};},10);}}};})(jQuery);;(function($){$.fn.jNice=function(options){var self=this;var safari=$.browser.safari;$(document).mousedown(checkExternalClick);return this.each(function(){$('input:submit, input:reset, input:button',this).each(ButtonAdd);$('button').focus(function(){$(this).addClass('jNiceFocus')}).blur(function(){$(this).removeClass('jNiceFocus')});$('input:text:visible, input:password',this).each(TextAdd);if(safari){$('.jNiceInputWrapper').each(function(){$(this).addClass('jNiceSafari').find('input').css('width',$(this).width()+11);});}
$('input:checkbox',this).each(CheckAdd);$('input:radio',this).each(RadioAdd);$('select',this).each(function(index){SelectAdd(this,index);});$(this).bind('reset',function(){var action=function(){Reset(this);};window.setTimeout(action,10);});$('.jNiceHidden').css({opacity:0});});};var Reset=function(form){var sel;$('.jNiceSelectWrapper select',form).each(function(){sel=(this.selectedIndex<0)?0:this.selectedIndex;$('ul',$(this).parent()).each(function(){$('a:eq('+sel+')',this).click();});});$('a.jNiceCheckbox, a.jNiceRadio',form).removeClass('jNiceChecked');$('input:checkbox, input:radio',form).each(function(){if(this.checked){$('a',$(this).parent()).addClass('jNiceChecked');}});};var RadioAdd=function(){var $input=$(this).addClass('jNiceHidden').wrap(' ');var $wrapper=$input.parent();var $a=$(' ');$wrapper.prepend($a);$a.click(function(){var $input=$(this).addClass('jNiceChecked').siblings('input').attr('checked',true);$('input:radio[name="'+$input.attr('name')+'"]').not($input).each(function(){$(this).attr('checked',false).siblings('.jNiceRadio').removeClass('jNiceChecked');});return false;});$input.click(function(){if(this.checked){var $input=$(this).siblings('.jNiceRadio').addClass('jNiceChecked').end();$('input:radio[name="'+$input.attr('name')+'"]').not($input).each(function(){$(this).attr('checked',false).siblings('.jNiceRadio').removeClass('jNiceChecked');});}}).focus(function(){$a.addClass('jNiceFocus');}).blur(function(){$a.removeClass('jNiceFocus');});if(this.checked){$a.addClass('jNiceChecked');}};var CheckAdd=function(){var $input=$(this).addClass('jNiceHidden').wrap(' ');var $wrapper=$input.parent().append(' ');var $a=$wrapper.find('.jNiceCheckbox').click(function(){var $a=$(this);var input=$a.siblings('input')[0];if(input.checked===true){input.checked=false;$a.removeClass('jNiceChecked');}
else{input.checked=true;$a.addClass('jNiceChecked');}
return false;});$input.click(function(){if(this.checked){$a.addClass('jNiceChecked');}
else{$a.removeClass('jNiceChecked');}}).focus(function(){$a.addClass('jNiceFocus');}).blur(function(){$a.removeClass('jNiceFocus');});if(this.checked){$('.jNiceCheckbox',$wrapper).addClass('jNiceChecked');}};var TextAdd=function(){var $input=$(this).addClass('jNiceInput').wrap('');var $wrapper=$input.parents('.jNiceInputWrapper');$input.focus(function(){$wrapper.addClass('jNiceInputWrapper_hover');}).blur(function(){$wrapper.removeClass('jNiceInputWrapper_hover');});};var ButtonAdd=function(){var value=$(this).attr('value');$(this).replaceWith(''+value+' ');};var SelectHide=function(){$('.jNiceSelectWrapper ul:visible').hide();};var checkExternalClick=function(event){if($(event.target).parents('.jNiceSelectWrapper').length===0){SelectHide();}};var SelectAdd=function(element,index){var $select=$(element);index=index||$select.css('zIndex')*1;index=(index)?index:0;$select.wrap($('
').css({zIndex:100-index}));var width=$select.width();$select.addClass('jNiceHidden').after('');var $wrapper=$(element).siblings('.jNiceSelectWrapper').css({width:width+'px'});$('.jNiceSelectText, .jNiceSelectWrapper ul',$wrapper).width(width-$('.jNiceSelectOpen',$wrapper).width());if($.browser.msie&&jQuery.browser.version<7){$select.after($('').css({height:$select.height()+4+'px'}));}
SelectUpdate(element);$('div',$wrapper).click(function(){var $ul=$(this).siblings('ul');if($ul.css('display')=='none'){SelectHide();}
$ul.slideToggle();var offSet=($('a.selected',$ul).offset().top-$ul.offset().top);$ul.animate({scrollTop:offSet});return false;});$select.keydown(function(e){var selectedIndex=this.selectedIndex;switch(e.keyCode){case 40:if(selectedIndex0){selectedIndex-=1;}
break;default:return;break;}
$('ul a',$wrapper).removeClass('selected').eq(selectedIndex).addClass('selected');$('span:eq(0)',$wrapper).html($('option:eq('+selectedIndex+')',$select).attr('selected','selected').text());return false;}).focus(function(){$wrapper.addClass('jNiceFocus');}).blur(function(){$wrapper.removeClass('jNiceFocus');});};var SelectUpdate=function(element){var $select=$(element);var $wrapper=$select.siblings('.jNiceSelectWrapper');var $ul=$wrapper.find('ul').find('li').remove().end().hide();$('option',$select).each(function(i){$ul.append(''+this.text+' ');});$ul.find('a').click(function(){$('a.selected',$wrapper).removeClass('selected');$(this).addClass('selected');if($select[0].selectedIndex!=$(this).attr('index')&&$select[0].onchange){$select[0].selectedIndex=$(this).attr('index');$select[0].onchange();}
$select[0].selectedIndex=$(this).attr('index');$('span:eq(0)',$wrapper).html($(this).html());$ul.hide();return false;});$('a:eq('+$select[0].selectedIndex+')',$ul).click();};var SelectRemove=function(element){var zIndex=$(element).siblings('.jNiceSelectWrapper').css('zIndex');$(element).css({zIndex:zIndex}).removeClass('jNiceHidden');$(element).siblings('.jNiceSelectWrapper').remove();};$.jNice={SelectAdd:function(element,index){SelectAdd(element,index);},SelectRemove:function(element){SelectRemove(element);},SelectUpdate:function(element){SelectUpdate(element);}};$(function(){$('form.jNice').jNice();});})(jQuery);;(function($){$.fn.jNicePop=function(options){var self=this;var safari=$.browser.safari;$(document).mousedown(checkExternalClick);return this.each(function(){$('input:submit, input:reset, input:button',this).each(ButtonAdd);$('button').focus(function(){$(this).addClass('jNicePopFocus')}).blur(function(){$(this).removeClass('jNicePopFocus')});$('input:text:visible, input:password',this).each(TextAdd);if(safari){$('.jNicePopInputWrapper').each(function(){$(this).addClass('jNicePopSafari').find('input').css('width',$(this).width()+11);});}
$('input:checkbox',this).each(CheckAdd);$('input:radio',this).each(RadioAdd);$('select',this).each(function(index){SelectAdd(this,index);});$(this).bind('reset',function(){var action=function(){Reset(this);};window.setTimeout(action,10);});$('.jNicePopHidden').css({opacity:0});});};var Reset=function(form){var sel;$('.jNicePopSelectWrapper select',form).each(function(){sel=(this.selectedIndex<0)?0:this.selectedIndex;$('ul',$(this).parent()).each(function(){$('a:eq('+sel+')',this).click();});});$('a.jNicePopCheckbox, a.jNicePopRadio',form).removeClass('jNicePopChecked');$('input:checkbox, input:radio',form).each(function(){if(this.checked){$('a',$(this).parent()).addClass('jNicePopChecked');}});};var RadioAdd=function(){var $input=$(this).addClass('jNicePopHidden').wrap(' ');var $wrapper=$input.parent();var $a=$(' ');$wrapper.prepend($a);$a.click(function(){var $input=$(this).addClass('jNicePopChecked').siblings('input').attr('checked',true);$('input:radio[name="'+$input.attr('name')+'"]').not($input).each(function(){$(this).attr('checked',false).siblings('.jNicePopRadio').removeClass('jNicePopChecked');});return false;});$input.click(function(){if(this.checked){var $input=$(this).siblings('.jNicePopRadio').addClass('jNicePopChecked').end();$('input:radio[name="'+$input.attr('name')+'"]').not($input).each(function(){$(this).attr('checked',false).siblings('.jNicePopRadio').removeClass('jNicePopChecked');});}}).focus(function(){$a.addClass('jNicePopFocus');}).blur(function(){$a.removeClass('jNicePopFocus');});if(this.checked){$a.addClass('jNicePopChecked');}};var CheckAdd=function(){var $input=$(this).addClass('jNicePopHidden').wrap(' ');var $wrapper=$input.parent().append(' ');var $a=$wrapper.find('.jNicePopCheckbox').click(function(){var $a=$(this);var input=$a.siblings('input')[0];if(input.checked===true){input.checked=false;$a.removeClass('jNicePopChecked');}
else{input.checked=true;$a.addClass('jNicePopChecked');}
return false;});$input.click(function(){if(this.checked){$a.addClass('jNicePopChecked');}
else{$a.removeClass('jNicePopChecked');}}).focus(function(){$a.addClass('jNicePopFocus');}).blur(function(){$a.removeClass('jNicePopFocus');});if(this.checked){$('.jNicePopCheckbox',$wrapper).addClass('jNicePopChecked');}};var TextAdd=function(){var $input=$(this).addClass('jNicePopInput').wrap('');var $wrapper=$input.parents('.jNicePopInputWrapper');$input.focus(function(){$wrapper.addClass('jNicePopInputWrapper_hover');}).blur(function(){$wrapper.removeClass('jNicePopInputWrapper_hover');});};var ButtonAdd=function(){var value=$(this).attr('value');$(this).replaceWith(''+value+' ');};var SelectHide=function(){$('.jNicePopSelectWrapper ul:visible').hide();};var checkExternalClick=function(event){if($(event.target).parents('.jNicePopSelectWrapper').length===0){SelectHide();}};var SelectAdd=function(element,index){var $select=$(element);index=index||$select.css('zIndex')*1;index=(index)?index:0;$select.wrap($('
').css({zIndex:100-index}));var width=$select.width();$select.addClass('jNicePopHidden').after('');var $wrapper=$(element).siblings('.jNicePopSelectWrapper').css({width:width+'px'});$('.jNicePopSelectText, .jNicePopSelectWrapper ul',$wrapper).width(width-$('.jNicePopSelectOpen',$wrapper).width());if($.browser.msie&&jQuery.browser.version<7){$select.after($('').css({height:$select.height()+4+'px'}));}
SelectUpdate(element);$('div',$wrapper).click(function(){var $ul=$(this).siblings('ul');if($ul.css('display')=='none'){SelectHide();}
$ul.slideToggle();var offSet=($('a.selected',$ul).offset().top-$ul.offset().top);$ul.animate({scrollTop:offSet});return false;});$select.keydown(function(e){var selectedIndex=this.selectedIndex;switch(e.keyCode){case 40:if(selectedIndex0){selectedIndex-=1;}
break;default:return;break;}
$('ul a',$wrapper).removeClass('selected').eq(selectedIndex).addClass('selected');$('span:eq(0)',$wrapper).html($('option:eq('+selectedIndex+')',$select).attr('selected','selected').text());return false;}).focus(function(){$wrapper.addClass('jNicePopFocus');}).blur(function(){$wrapper.removeClass('jNicePopFocus');});};var SelectUpdate=function(element){var $select=$(element);var $wrapper=$select.siblings('.jNicePopSelectWrapper');var $ul=$wrapper.find('ul').find('li').remove().end().hide();$('option',$select).each(function(i){$ul.append(''+this.text+' ');});$ul.find('a').click(function(){$('a.selected',$wrapper).removeClass('selected');$(this).addClass('selected');if($select[0].selectedIndex!=$(this).attr('index')&&$select[0].onchange){$select[0].selectedIndex=$(this).attr('index');$select[0].onchange();}
$select[0].selectedIndex=$(this).attr('index');$('span:eq(0)',$wrapper).html($(this).html());$ul.hide();return false;});$('a:eq('+$select[0].selectedIndex+')',$ul).click();};var SelectRemove=function(element){var zIndex=$(element).siblings('.jNicePopSelectWrapper').css('zIndex');$(element).css({zIndex:zIndex}).removeClass('jNicePopHidden');$(element).siblings('.jNicePopSelectWrapper').remove();};$.jNicePop={SelectAdd:function(element,index){SelectAdd(element,index);},SelectRemove:function(element){SelectRemove(element);},SelectUpdate:function(element){SelectUpdate(element);}};$(function(){$('form.jNicePop').jNicePop();});})(jQuery);;var shortPass='Êîðîòêèé ïàðîëü '
var badPass='Ïëîõîé ïàðîëü '
var normalPass='Íîðìàëüíûé ïàðîëü '
var goodPass='Õîðîøèé ïàðîëü '
var strongPass='Êðóòîé ïàðîëü '
function passwordStrength(password,username)
{score=0
if(password.length<4){return shortPass}
if(password.toLowerCase()==username.toLowerCase())return badPass
score+=password.length*4
score+=(checkRepetition(1,password).length-password.length)*1
score+=(checkRepetition(2,password).length-password.length)*1
score+=(checkRepetition(3,password).length-password.length)*1
score+=(checkRepetition(4,password).length-password.length)*1
if(password.match(/(.*[0-9].*[0-9].*[0-9])/))score+=5
if(password.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/))score+=5
if(password.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/))score+=10
if(password.match(/([a-zA-Z])/)&&password.match(/([0-9])/))score+=15
if(password.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&password.match(/([0-9])/))score+=15
if(password.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&password.match(/([a-zA-Z])/))score+=15
if(password.match(/^\w+$/)||password.match(/^\d+$/))score-=20
if(score<0)score=0
if(score>100)score=100
if(score<17)return badPass
if(score<34)return normalPass
if(score<68)return goodPass
return strongPass}
function checkRepetition(pLen,str){res=""
for(i=0;i ',image:'The requested content cannot be loaded. Please try again later.
',closeBtn:'