rem: var alarmLabel = "alarm-length-text"; 
add: var alarmTrigger = "alarm-trigger-relation"; 
context: function updateAlarmItemEnabled(){   var alarmCheckBox = "alarm-checkbox";      var alarmField = "alarm-length-field";   var alarmMenu = "alarm-length-units";   var alarmLabel = "alarm-length-text";         var alarmEmailCheckbox = "alarm-email-checkbox";   var alarmEmailField = "alarm-email-field";   if( getFieldValue(alarmCheckBox, "checked" ) || getFieldValue( alarmEmailCheckbox, "checked" ) )   {      // call remove attribute beacuse some widget code checks for the presense of a       // disabled attribute, not the value.      setFieldValue( alarmCheckBox, true, "checked" );      setFieldValue( alarmField, false, "disabled" );      setFieldValue( alarmMenu, false, "disabled" );      setFieldValue( alarmLabel, false, "disabled" );      setFieldValue( alarmEmailCheckbox, false, "disabled" );   }   else   {      setFieldValue( alarmField, true, "disabled" );      setFieldValue( alarmMenu, true, "disabled" );      setFieldValue( alarmLabel, true, "disabled" );      setFieldValue( alarmEmailField, true, "disabled" );      setFieldValue( alarmEmailCheckbox, true, "disabled" );      setFieldValue( alarmEmailCheckbox, false, "checked" );   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6fdc6bb6cf076d1ffc891289d335ea13b48adc6d/toDoDialog.js/clean/calendar/resources/content/toDoDialog.js