rem: var _b0=new RegExp("/([^/]*)/([gi]*)"); var _b1=_aa.className.match(_b0); if(_b1[0]){ var _b2=new RegExp(_b1[1],_b1[2]); if(!_aa.value.match(_b2)){ _ad.showError(_aa,_ad.errMsg_custom); _ae++; 
add: var _b6=new RegExp("/([^/]*)/([gi]*)"); var _b7=_b0.className.match(_b6); if(_b7[0]){ var _b8=new RegExp(_b7[1],_b7[2]); if(!_b0.value.match(_b8)){ _b3.showError(_b0,_b3.errMsg_custom); _b4++; 
context: },validateElement:function(_aa){var _ab=arguments.length>2?arguments[2]:true;var _ac=arguments[1]?arguments[1]:false;var _ad=wFORMS.behaviors["validation"];if(wFORMS.hasBehavior("switch")&&wFORMS.helpers.hasClassPrefix(_aa,wFORMS.classNamePrefix_offState)){if(!_ad.submitSwitchedOffFields){while(_aa.childNodes[0]){_aa.removeChild(_aa.childNodes[0]);}}return 0;}if(wFORMS.hasBehavior("paging")&&wFORMS.helpers.hasClass(_aa,wFORMS.className_paging)){if(!wFORMS.helpers.hasClass(_aa,wFORMS.className_pagingCurrent)&&_ac){return 0;}_ad.currentPageIndex=wFORMS.behaviors["paging"].getPageIndex(_aa);}var _ae=0;if(!_ad.checkRequired(_aa)){_ad.showError(_aa,_ad.errMsg_required);_ae++;}else{if(wFORMS.helpers.hasClassPrefix(_aa,wFORMS.classNamePrefix_validation)){var _af=_aa.className.split(" ");for(j=0;j<_af.length;j++){switch(_af[j]){case "validate-alpha":if(!_ad.isAlpha(_aa.value)){_ad.showError(_aa,_ad.errMsg_alpha);_ae++;}break;case "validate-alphanum":if(!_ad.isAlphaNum(_aa.value)){_ad.showError(_aa,_ad.errMsg_alphanum);_ae++;}break;case "validate-date":if(!_ad.isDate(_aa.value)){_ad.showError(_aa,_ad.errMsg_date);_ae++;}break;case "validate-time":break;case "validate-email":if(!_ad.isEmail(_aa.value)){_ad.showError(_aa,_ad.errMsg_email);_ae++;}break;case "validate-integer":if(!_ad.isInteger(_aa.value)){_ad.showError(_aa,_ad.errMsg_integer);_ae++;}break;case "validate-float":if(!_ad.isFloat(_aa.value)){_ad.showError(_aa,_ad.errMsg_float);_ae++;}break;case "validate-strongpassword":if(!_ad.isPassword(_aa.value)){_ad.showError(_aa,_ad.errMsg_password);_ae++;}break;case "validate-custom":var _b0=new RegExp("/([^/]*)/([gi]*)");var _b1=_aa.className.match(_b0);if(_b1[0]){var _b2=new RegExp(_b1[1],_b1[2]);if(!_aa.value.match(_b2)){_ad.showError(_aa,_ad.errMsg_custom);_ae++;}}break;}}}}if(_ae==0){_ad.removeErrorMessage(_aa);}else{if(_ad.currentPageIndex>0&&!_ad.jumpToErrorOnPage){_ad.jumpToErrorOnPage=_ad.currentPageIndex;}}if(_ab){for(var i=0;i<_aa.childNodes.length;i++){if(_aa.childNodes[i].nodeType==1){_ae+=_ad.validateElement(_aa.childNodes[i],_ac,_ab);}}}return _ae;},checkRequired:function(_b4){
meta: 8955	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8955/50138b60184c939025fb7414334b9f45fc84b6d3/wforms_pack.js/buggy/trunk/wforms_pack.js