function maintainScrollPositon(){if(typeof Storage!="undefined"){var n=parseInt(localStorage.getItem("top"),10);n&&($(window).scrollTop(n),localStorage.setItem("top",""));$(".maintain-scroll").on("click",function(){localStorage.setItem("top",$(window).scrollTop())})}}$(function(){maintainScrollPositon();$("input[data-val-length-max], textarea[data-val-length-max]").each(function(){$(this).attr("maxlength",$(this).attr("data-val-length-max"));$(this).attr("maxlimit",$(this).attr("data-val-length-max"))});$("input.ssn, input.phone , input.number, input.date, input.zip, input.currency, input.monthyear, .textarea").textbox();$(document).on("focus","input.ssn:not(.initialized), input.phone:not(.initialized) ,input.number:not(.initialized), input.date:not(.initialized), input.zip:not(.initialized),input.currency:not(.initialized), input.monthyear:not(.initialized), .textarea:not(.initialized)",function(n){$(this).hasClass("initialized")||($(this).textbox(),$(this).off(n))})})