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