context: function updateMenuPushactions(menu, pushActionsOfMenu, prevValueOfMenu) {       // Get pushaction-info corresponding to the selected value of this menu, if any    if(menu.selectedIndex < 0) {	//alert("ATTN, no value selected for menu " + menu.name + ", selectedIndex = " + menu.selectedIndex + ", can't do pushaction-thing now");	return false;    }    var menu_value = menu.options[menu.selectedIndex].value;    var pushActionInfo;        //alert (menu.name + '  -  '+menu_value);	        if(pushActionsOfMenu && pushActionsOfMenu[menu.name]) {	//	alert ('Its there');	pushActionInfo = pushActionsOfMenu[menu.name][menu_value];    }    if(!pushActionInfo) {	//alert('FASLE');	return false; // return w/o doing anything if there's no pa-info available for this menu    }        //alert("I'm here");    // Find all secondary menus to update given the value of the primary menu    for(var menu2_name in pushActionInfo) {		var menu2 = document.mainform.elements[menu2_name];		//alert("Have secondary menu to update: " + menu2_name);			if(!menu2) {		    continue;		}		if(prevValueOfMenu)		{			//alert(prevValueOfMenu[menu2_name]);		}		//alert('DBLENGTH '+pushActionInfo[menu2_name].length+ ' DB: '+pushActionInfo[menu2_name][0][0]);		var pushActionLoopLength = pushActionInfo[menu2_name].length;		for(var i=0;i < pushActionLoopLength; i++) {			//option_name = option_names[i];			//alert(i + " "+ pushActionInfo[menu2_name][i][1]);		    optionName = pushActionInfo[menu2_name][i][0];		    optionDisplayName = pushActionInfo[menu2_name][i][1];		    var option = new Option(optionDisplayName, optionName);		    menu2.options[i] = option;	   	 	if(prevValueOfMenu && prevValueOfMenu[menu2_name] == optionDisplayName) {			//	alert ('SELECTED')				menu2.options[i].selected = true;	    		}		}				// Call this function again, to recursively process pushaction-config		// of arbitrary depth, but only if there's actually pushaction-info		// available (to avoid an infinite loop here, you see..)				if(pushActionsOfMenu[menu2_name]) {		    //alert("Have tertiary menu to update, calling function again for menu " + menu2_name);	    		//alert ('yes '+  menu2_name);		    updateMenuPushactions(menu2, pushActionsOfMenu, prevValueOfMenu);		}    }}
meta: 5750	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5750/48debaa916d9000f4f5ee3f31b857e479dcf0e70/martview.js/clean/htdocs/martview/js/martview.js