rem:  var now = new Date();  var thisMorning = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0 );  if( calendarToDo.start.getTime() <= thisMorning.getTime() ) {  props.AppendElement(aserv.getAtom("started")); }  var completed = calendarToDo.completed.getTime();  if( completed > 0 ) { props.AppendElement(aserv.getAtom("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 );  var yesterdayMidnight = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() - 1 ), 23, 59, 00 );  if( tonightMidnight.getTime() > dueDate.getTime() ) { props.AppendElement(aserv.getAtom("overdue")); } else if ( dueDate.getFullYear() == now.getFullYear() && dueDate.getMonth() == now.getMonth() && dueDate.getDate() == now.getDate() ) { props.AppendElement(aserv.getAtom("duetoday")); } else { props.AppendElement(aserv.getAtom("inprogress")); } if(calendarToDo.priority > 0 && calendarToDo.priority < 5) props.AppendElement(aserv.getAtom("highpriority")); if(calendarToDo.priority > 5 && calendarToDo.priority < 10) props.AppendElement(aserv.getAtom("lowpriority")); 
add: props.AppendElement(aserv.getAtom(ToDoProgressAtom( calendarToDo ))); 
context:    getRowProperties : function( row,props ){      calendarToDo = gTaskArray[row];            var aserv=Components.classes["@mozilla.org/atom-service;1"].createInstance(Components.interfaces.nsIAtomService);          var now = new Date();         var thisMorning = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0 );            if( calendarToDo.start.getTime() <= thisMorning.getTime() )      {         //this task should be started         props.AppendElement(aserv.getAtom("started"));      }            var completed = calendarToDo.completed.getTime();            if( completed > 0 )      {         props.AppendElement(aserv.getAtom("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 );            var yesterdayMidnight = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() - 1 ), 23, 59, 00 );            if( tonightMidnight.getTime() > dueDate.getTime() )      {         props.AppendElement(aserv.getAtom("overdue"));      } else if ( dueDate.getFullYear() == now.getFullYear() &&                  dueDate.getMonth() == now.getMonth() &&                  dueDate.getDate() == now.getDate() )      {         props.AppendElement(aserv.getAtom("duetoday"));      }      else      {         props.AppendElement(aserv.getAtom("inprogress"));      }      if(calendarToDo.priority > 0 && calendarToDo.priority < 5)         props.AppendElement(aserv.getAtom("highpriority"));      if(calendarToDo.priority > 5 && calendarToDo.priority < 10)         props.AppendElement(aserv.getAtom("lowpriority"));                                                     },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/fb5cf832296ecc468dbbb72bf479f3242f2233aa/unifinderToDo.js/clean/calendar/resources/content/unifinderToDo.js