rem: var thisMorning = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0 ); 
add: var completed = calendarToDo.completed.getTime(); 
context: function ToDoProgressAtom( calendarToDo ){      var now = new Date();         var thisMorning = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0 );            var completed = calendarToDo.completed.getTime();            if( completed > 0 )      {         return("completed");      }            var startDate     = new Date( calendarToDo.start.getTime() );      var dueDate       = new Date( calendarToDo.due.getTime() );      var tonightMidnight = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 00 );            if( thisMorning.getTime() > dueDate.getTime() )      {         return("overdue");      } else 	if ( dueDate.getFullYear() == now.getFullYear() &&                  dueDate.getMonth() == now.getMonth() &&                  dueDate.getDate() == now.getDate() )      {	    return("duetoday");      } else	if( tonightMidnight.getTime() < startDate.getTime() )	{	    return("future");      }      else      {	    return("inprogress");      }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c3ec316be4f0179deedde2ddb63be19899f3b5de/unifinderToDo.js/clean/calendar/resources/content/unifinderToDo.js