add: wFORMS.behaviors['validation'].switchedOffFields = []; 
context:            run: function(e) {				var element  = wFORMS.helpers.getSourceElement(e);				if(!element) element = e;				//wFORMS.debug('validation/run: ' + element.id , 5);									var currentPageOnly = arguments[1] ? arguments[1] : (wFORMS.hasBehavior('paging') && wFORMS.behaviors['paging'].behaviorInUse);								wFORMS.behaviors['validation'].jumpToErrorOnPage = null;				// on multi-page forms we need to prevent the submission when the 'enter' key is pressed				// (doesn't work in Opera. Further tests needed in IE and Safari)				if(wFORMS.preventSubmissionOnEnter) { 					if(element.type && element.type.toLowerCase()=='text') 						// source element is a text field, the form was submitted with the 'enter' key.						return wFORMS.preventEvent(e); 				}				// make sure we have the form element				while (element && element.tagName.toUpperCase() != 'FORM') {					element = element.parentNode;				}										var nbErrors = wFORMS.behaviors['validation'].validateElement(element, currentPageOnly, true);								// save the value in a property if someone else needs it.				wFORMS.behaviors['validation'].errorCount = nbErrors;								if (nbErrors > 0) {										if(wFORMS.behaviors['validation'].jumpToErrorOnPage) {											wFORMS.behaviors['paging'].gotoPage(wFORMS.behaviors['validation'].jumpToErrorOnPage);					}					if(wFORMS.showAlertOnError){ wFORMS.behaviors['validation'].showAlert(nbErrors); }					return wFORMS.helpers.preventEvent(e); 				}								// remove switched-off content if any				if(!wFORMS.behaviors['validation'].submitSwitchedOffFields) {					for(var i=0; i < wFORMS.behaviors['validation'].switchedOffFields.length; i++) {						var element = wFORMS.behaviors['validation'].switchedOffFields[i];						while(element.childNodes[0]) 							element.removeChild(element.childNodes[0]);					}				}								return true;			},
meta: 8955	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8955/6656a5ae3a62d540a85285e7d9188182d3776377/wforms.js/clean/trunk/wforms.js