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