rem: document.getElementById( "advanced-repeat-week-"+dayNumber ).setAttribute( "disabled", "true" ); 
add: setFieldValue( "advanced-repeat-week-"+dayNumber, "true", "today" ); 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e73ed928b8f708de374b049a8af1563244bd627c/calendarEventDialog.js/clean/calendar/resources/content/calendarEventDialog.js