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