rem: for( var i = 0; i < 7; i++ ) { 
add: for( var i = 0; i < 7; i++ ) { 
context: function updateAdvancedWeekRepeat(){   //get the day number for today.   var dayNumber = document.getElementById( "start-datetime" ).value.getDay();      //uncheck them all if the repeat checkbox is checked   var repeatCheckBox = document.getElementById( "repeat-checkbox" );      if( repeatCheckBox.checked )   {      //uncheck them all      for( var i = 0; i < 7; i++ )      {         setFieldValue( "advanced-repeat-week-"+i, false, "disabled" );               setFieldValue( "advanced-repeat-week-"+i, false, "today" );      }   }   if( !repeatCheckBox.checked )   {      for( i = 0; i < 7; i++ )      {         setFieldValue( "advanced-repeat-week-"+i, false, "checked" );      }   }   setFieldValue( "advanced-repeat-week-"+dayNumber, "true", "checked" );   setFieldValue( "advanced-repeat-week-"+dayNumber, "true", "disabled" );   setFieldValue( "advanced-repeat-week-"+dayNumber, "true", "today" );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6dbfd3c82c9a9483216065b0d5dde2a1b40a4fae/eventDialog.js/clean/calendar/resources/content/eventDialog.js