rem: debug("processComponentType: " + componentType ); 
context: function processComponentType(componentType){    debug("processComponentType: " + componentType );    switch( componentType ) {    case "event":         // Hide and show the appropriate fields and widgets        changeMenuState("todo", "event");         // Set the menu properly if it isn't already        menuListSelectItem("component-type", "event");         // calling just enableElement _should_ work here, but it doesn't        setElementValue("start-datetime", false, "disabled");        enableElement("start-datetime");        enableElement("end-datetime");         // Set alarm trigger menulist text correctly (using singular/plural code)        setElementValue("alarm-trigger-text-kludge", "2"); // event text is "plural"        updateMenuLabels("alarm-trigger-text-kludge", "alarm-trigger-relation");        enableElement("alarm-type")         // Set menubar title correctly        changeTitleBar("event");        break;    case "todo":         // Hide and show the appropriate fields and widgets        changeMenuState("event", "todo");         // Set the menu properly if it isn't already        menuListSelectItem("component-type", "todo");         // Enable/disable date/time pickers as need be        onDateTimeCheckbox("start-checkbox", "start-datetime");        onDateTimeCheckbox("due-checkbox", "due-datetime");         // Set alarm trigger menulist text correctly (using singular/plural code)        setElementValue("alarm-trigger-text-kludge", "1"); // todo text is "singular"        updateMenuLabels("alarm-trigger-text-kludge", "alarm-trigger-relation");        // Set menubar title correctly        changeTitleBar("todo");        break;    //case "journal":    default:        // We were passed an invalid value:        dump("processComponentType: ERROR! Tried to select invalid component type: "+componentType+"\n");        break;    }    processAlarmType();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ce320893fa5c6ed473fb617c37c017e3646e703a/eventDialog.js/buggy/calendar/resources/content/eventDialog.js