(function(a){jQuery.fn.alphanumeric=function(c){b(this,c,true,true)};jQuery.fn.numeric=function(c){b(this,c,false,true)};jQuery.fn.alpha=function(c){b(this,c,true,false)};var b=function(g,f,e,c){var d="";if(c){d+="0-9"}if(e){if(f==undefined||!f.allcaps){d+="a-z"}if(f==undefined||!f.nocaps){d+="A-Z"}}if(f!=undefined&&f.allow!=undefined){d+=RegExp.escape(f.allow)}a(g).regexRestrict(RegExp("[^"+d+"]","g"))}})(jQuery);RegExp.escape=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};