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