rem: alarmItemValue = alarmItem.getAttribute("value"); 
add: var alarmItemValue = alarmItem.getAttribute("value"); 
context: function updateAlarm(){    var alarmMenu = document.getElementById("event-alarm");    var alarmItem = alarmMenu.selectedItem;    alarmItemValue = alarmItem.getAttribute("value");    switch (alarmItemValue) {    case "custom":        /* restore old values if they're around */        setAlarmFields(alarmItem);                document.getElementById("alarm-details").style.visibility = "visible";        break;    default:        document.getElementById("alarm-details").style.visibility = "hidden";        var customItem = document.getElementById("alarm-custom-menuitem");        if (prevAlarmItem == customItem) {            customItem.setAttribute("length", getElementValue("alarm-length-field"));            customItem.setAttribute("unit", getElementValue("alarm-length-units"));            customItem.setAttribute("relation", getElementValue("alarm-trigger-relation"));        }        setAlarmFields(alarmItem);        break;    }    prevAlarmItem = alarmItem;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9255abd6391004dfb03c7a5e78e76b1f8cce906c/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js