rem:  for( i = 0; i < 7; i++ ) 
add:  var repeatCheckBox = document.getElementById( "repeat-checkbox" );  if( repeatCheckBox.checked ) 
context: function updateAdvancedWeekRepeat(){   //get the day number for today.   var startTime = getDateTimeFieldValue( "start-date-text" );      var dayNumber = startTime.getDay();   //uncheck them all   for( i = 0; i < 7; i++ )   {      document.getElementById( "advanced-repeat-week-"+i ).setAttribute( "checked", "false" );      document.getElementById( "advanced-repeat-week-"+i ).removeAttribute( "disabled" );   }   document.getElementById( "advanced-repeat-week-"+dayNumber ).setAttribute( "checked", "true" );   document.getElementById( "advanced-repeat-week-"+dayNumber ).setAttribute( "disabled", "true" );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2916e62d7bb7a5616da721a0909b35d27c946925/calendarEventDialog.js/buggy/calendar/resources/content/calendarEventDialog.js