sel[4].disabled = 'disabled'; 
var manager = function() {    return {        list : 'unset',        eventselected : false,        /* Updates elements to what is selected.  */        updateActionMenus : function(sel) {            sel.selectedIndex = 0;            if (manager.anEventIsSelected()) {                if (manager.list == 'posted' || manager.list == 'archived') {                    sel[1].disabled = 'disabled';                    sel[2].disabled = null;                    sel[4].disabled = null;                } else if (manager.list == 'search') {                    sel[1].disabled = null;                    sel[2].disabled = null;                } else {                    sel[1].disabled = null;                    sel[2].disabled = 'disabled';                    sel[4].disabled = null;                }                sel[3].disabled = null;            } else {                sel[1].disabled = 'disabled';                sel[2].disabled = 'disabled';                sel[3].disabled = 'disabled';                sel[4].disabled = 'disabled';            }        },                /** Determines if an event is currently selected. */        anEventIsSelected : function() {            return manager.eventselected;        },                /* This function is called when an action is selected within an event listing */        actionMenuChange  : function(sel) {            switch(sel[sel.selectedIndex].value) {            case 'posted':            case 'archived':                var button = document.getElementById('moveto_posted');                button.click();                break;            case 'pending':                var button = document.getElementById('moveto_pending');                button.click();                break;            case 'recommend':                document.formlist.action = '?action=recommend';                document.formlist.submit();                break;            case 'delete':                var button = document.getElementById('delete_event');                button.click();                break;            }        }    };}();
6726	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6726/7521941997a979a3b2588acf202d308c9ac75964/manager.js/buggy/templates/default/manager.js