/**
 * Additional xui-validation custom validations.
 * @version 1.1.1
 * 
 * Documentation on the extension format available online.
 * @see http://irama.org/web/dhtml/xui-validation/#extension
 *
 * 1. integer only field
 *    class = "integer"
 * 2. alphanumeric only field
 *    class = "alphanumeric"
 * 3. credit card type field (Visa, Mastercard, etc...)
 *    class = "creditcard-type"
 * 4. credit card number field
 *    class = "creditcard-number"
 * 5. credit card expiry field
 *    class = "creditcard-expiry"
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('D=F.j;F[D++]={\'w\':\'G.1s\',\'Q\':[\'J\',\'I\',\'v\',\'y\'],\'P\':C(){7($(8).q().w(/[^0-9]/g)){3\'14 B 2k 1s V\'}3 p}};F[D++]={\'w\':\'G.2i\',\'Q\':[\'J\',\'I\',\'v\',\'y\'],\'P\':C(){7($(8).q().w(/[^0-2b-2s-Z ]/g)){3\'14 B 2z 2C 1f V\'}3 p}};F[D++]={\'w\':\'G.M-1b\',\'Q\':[\'J\',\'I\',\'v\',\'y\'],\'P\':C(){19=$(8).1u(18.1B+\':U(1)\').1w(\'.M-W:U(1)\');7(19.q()!=\'\'){2r.o(19,[2u[1],\'v\'])}3 p}};F[D++]={\'w\':\'G.M-W\',\'Q\':[\'J\',\'I\',\'v\',\'y\'],\'P\':C(l,2v){7($(8).q().w(/[^0-9\\- ]/g)){3\'1f 1y A - V\'}7($(8).q()==\'\'){3 p}1q k=16;1q u=$(8).q().1E(/[^0-9]/g,\'\');1c=C(k,l){7(u.j>k){3\'x B \'+k+\' X (1p \'+u.j+\' X)\'}7(u.j<k){7(l==\'v\'||l==\'y\'){3\'x B \'+k+\' X (1p \'+u.j+\' X)\'}11{3 1h}}3 p};S=$(8).1u(18.1B+\':U(1)\').1w(\'.M-1b:U(1)\');7(S.1X()>0){7($(S).1W(18.1U)){H=$(\'G[1x=\'+$(S).1V(\'1x\')+\']:21\').q()}11{H=S.q()}7(26 H!=\'25\'){24(H){1a\'22\':k=16;E=[4];13;1a\'1T\':k=16;E=[27,1R,1J,1K,1I];13;1a\'\':k=16;E=[\'\'];13;1F:3\'1G 1A 1b "\'+H+\'" 1L 1S\';13}7((Y=1c(k,l))!=p){3 Y}1d=1z;17(n 1t E){7(u.T(0,(E[n]+\'\').j)==E[n]+\'\'){1d=p}}7(1d==1z){3\'1m \'+H+\' W\'}}}7((Y=1c(k,l))!=p){3 Y}a=u.j/2;b=1e.1o(a);c=1e.2A(a)-b;d=0;17(n=0;n<b;n++){e=u.1n(n*2+c)*2;d+=(e>9)?1e.1o(e/10+e%10):e}17(n=0;n<b+m;n++){d+=u.1n(n*2+1-c)*1}7(d%10!=0){3\'1m W (2q 2e 2f 2d 2c)\'}3 p}};F[D++]={\'w\':\'G.M-2h\',\'Q\':[\'J\',\'I\',\'v\',\'y\'],\'P\':C(l){7($(8).q().w(/[^0-9\\/ ]/g)){r.o(8,[\'\']);3\'14 B 1f, 1y A / V\'}z=C(f,h){7(f==\'\')3\'\';1D=[\'2l\',\'2m\',\'2a\',\'2y\',\'2w\',\'2B\',\'2p\',\'23\',\'1N\',\'1Q\',\'1H\',\'20\'];f=1D[1k(f,10)-1];h=h||\'?\';3 f+\' \'+h};t=$(8).q().1E(/[^0-9]/g,\'\');7(t.j==1){r.o(8,[\'\']);7(t.T(0,1)>\'1\'||l==\'v\'||l==\'y\'){3\'x K 1i N s/O A s/L (i.e: 2j = 2x)\'}11{3 1h}}7(t.j>1){f=t.T(0,2);7(f==\'1Y\'){r.o(8,[\'\']);3\'x B a 1r f (N s/O A s/L)\'}7(f>\'12\'){r.o(8,[\'\']);3\'x B a 1r f (N s/O A s/L)\'}}7(t.j>6){r.o(8,[z(f)]);3\'x K 1i 1j N s/O A s/L\'}7(t.j<4||t.j==5){7(t.j==0){3 p}7(l==\'v\'||l==\'y\'){r.o(8,[z(f)]);3\'x K 1i 1j N s/O A s/L\'}11{r.o(8,[z(f)]);3 1h}}1g=2o 2n();1C=1g.2g()+1;R=1g.29()+\'\';h=t.T(2);7(h.j<4){h=R.T(0,2)+h}7(h<R||(h==R&&f<1C)){r.o(8,[z(f,h)]);3\'x K 1t 1j 28 (1O 1P 1A 1M?)\'}1l=15;1v=1k(R,10)+1l;7(1k(h,10)>1v){r.o(8,[z(f,h)]);3\'x K 1Z \'+1l+\' 2t\'}r.o(8,[z(f,h)]);3 p}};',62,163,'|||return||||if|this|||||||month||year||length|validLength|eventType|||apply|true|val|updateConfirmation|mm|ccexpnumber|ccnumber|blur|match|must|submit|readableDate|or|contain|function|vCount|prefixes|validations|input|cctypeValue|change|keyup|be|yyyy|creditcard|format|yy|validate|triggers|currentYear|cctype|substr|lt|only|number|digits|res|||else||break|can|||for|xuivConf|ccnumElement|case|type|checkLength|validPrefix|Math|numbers|currentDate|null|of|the|parseInt|limitYears|invalid|charAt|floor|currently|var|valid|integer|in|parents|limitYear|find|name|spaces|false|card|formSelector|currentMonth|months|replace|default|credit|November|55|53|54|not|expired|September|has|your|October|52|recognised|Mastercard|checkControlSelector|attr|is|size|00|within|December|checked|Visa|August|switch|undefined|typeof|51|future|getFullYear|March|9a|correctly|entered|it|was|getMonth|expiry|alpha|Feb|an|January|February|Date|new|July|check|validateControl|zA|years|arguments|eventObj|May|02|April|letters|ceil|June|and'.split('|'),0,{}))

