rem: var alarmEmailField = document.getElementById( "alarm-email-field" ); 
add: var alarmEmailField = "alarm-email-field"; 
context: function updateAlarmEmailItemEnabled(){   var alarmCheckBox = document.getElementById( "alarm-email-checkbox" );      var alarmEmailField = document.getElementById( "alarm-email-field" );         if( alarmCheckBox.checked )   {      // call remove attribute beacuse some widget code checks for the presense of a       // disabled attribute, not the value.            alarmEmailField.removeAttribute( "disabled" );   }   else   {      alarmEmailField.setAttribute( "disabled", "true" );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2916e62d7bb7a5616da721a0909b35d27c946925/eventDialog.js/buggy/calendar/resources/content/eventDialog.js