rem: init: function() {   for(var switchName in wFORMS.switchTriggers) { 
add: init: function(form) {  if(!form || !form.id) var formId = "undefined"; else var formId = form.id;  for(var switchName in wFORMS.switchTriggers[formId]) { 
context: 		   init: function() {			   // go through all switch triggers and activate those who are already ON			   //wFORMS.debug('switch/init: '+ (wFORMS.switchTriggers.length));			   for(var switchName in wFORMS.switchTriggers) {					// go through all triggers for the current switch					for(var i=0; i< wFORMS.switchTriggers[switchName].length; i++) {		   					   	var element = document.getElementById(wFORMS.switchTriggers[switchName][i]);						//wFORMS.debug('switch/init: ' + element + ' ' + switchName , 5);						   	if(wFORMS.behaviors['switch'].isTriggerOn(element,switchName)) {							// if it's a select option, get the select element							if(element.tagName.toUpperCase()=='OPTION') {								var element = element.parentNode;								while(element && element.tagName.toUpperCase() != 'SELECT') {									var element = element.parentNode;								}							}							// run the trigger							wFORMS.behaviors['switch'].run(element);						}				   }			   }		   },
meta: 8955	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8955/6de8188e214da9dfbd3dbaa370c6a8570ee2d380/wforms_switch.js/clean/trunk/src/wforms_switch.js