add: switch (Progress) { case 0: newItem.status = "NONE"; break; case 100: newItem.status = "COMPLETED"; break; default: newItem.status = "IN-PROCESS"; break; } 
context: function contextChangeProgress( event, Progress ){   var tree = document.getElementById( ToDoUnifinderTreeName );   var start = new Object();   var end = new Object();   var numRanges = tree.view.selection.getRangeCount();   var toDoItem;   if(numRanges == 0)      return;   startBatchTransaction();   for (var t = 0; t < numRanges; t++) {      tree.view.selection.getRangeAt(t, start, end);      for (v = start.value; v <= end.value; v++) {          todoItem = tree.taskView.getCalendarTaskAtRow( v );          var newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo );          newItem.percentComplete = Progress;          doTransaction('modify', newItem, newItem.calendar, todoItem, null);      }   }   endBatchTransaction();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a445239516c1fd440fe1425e0c18c4c8a4d3df39/unifinderToDo.js/clean/calendar/resources/content/unifinderToDo.js