rem: if( EventAlarmBoxes.length > 0 ) 
add: if( EventAlarmBoxes.item(0) ) 
context: function removeAlarmBox( Event ){      //get the box for the event   var EventAlarmBox = document.getElementById( Event.id );      if( EventAlarmBox )   {      //remove the box from the body      EventAlarmBox.parentNode.removeChild( EventAlarmBox );   }      //if there's no more events left, close the dialog   EventAlarmBoxes = document.getElementsByAttribute( "eventbox", "true" );         if( EventAlarmBoxes.length > 0 )   {      //there are still boxes left.      return( false );   }   else   {      //close the dialog      self.close();   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/846feff6655c64b6730d27fc562b2473668519f4/alertDialog.js/clean/calendar/resources/content/alertDialog.js