function SetAlertText(n,t){$(n).show();$(n).text(t);AddError(t)}function ClearAlert(){for(var n=0;n<arguments.length;n++)$(arguments[n]).hide()}function ClearInput(){for(var n=0;n<arguments.length;n++)$(arguments[n]).val("")}function TimerSet(){TimerClear();var n=$("#hdnTimerValue").val();n>0&&(timerId=setTimeout(function(){TimerExpired()},n))}function TimerExpired(){TimerClear();window.location.href="VoterRegistrationMain.aspx"}function TimerClear(){window.clearTimeout(timerId)}function ChangeBackgroundColorOnFocusChange(n,t,i){document.getElementById(n.id).style.backgroundColor=t;i&&(document.getElementById(n.id).style.color=i)}var getJSONAjaxResponse=function(n,t){var i="./VoterRegistrationMain.aspx/"+n,r=$.ajax({type:"POST",async:!1,url:i,data:t,contentType:"application/json; charset=utf-8",dataType:"json",success:function(){},error:function(){alert(MNVotesMessages.SYS_ERROR)},failure:function(){alert(MNVotesMessages.SYS_ERROR)}});return r.responseJSON},isIntegerNumber=function(n){return n.length==0?!1:Math.floor(n)==n&&$.isNumeric(n)?!0:!1},strcontains=function(n,t){return n.toLowerCase().indexOf(t)>-1?!0:!1},timerId;$(document).ready(function(){});timerId=""