////////////////////// (function($J) { $J.fn.alphanumeric=function(p) { p=$J.extend({ ichars: "!@#$J%^&*()+=[]\\\';,/{}|\":<>?~`.- ", nchars: "", allow: "" }, p); return this.each ( function() { if(p.nocaps) p.nchars+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if(p.allcaps) p.nchars+="abcdefghijklmnopqrstuvwxyz"; s=p.allow.split(''); for(i=0; i 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2'); } return x1 + x2; } //////////////////////