rem: var taskTotalDuration = taskDuration + parseFloat(lagTime.value); 
add: var taskTotalDuration = taskDuration + parseFloatOrNA(lagTime.value); 
context: function adjustTaskTimeFromDuration(start, end, duration, lagTime, isTaskForm, predecessor, origStart, origEnd, seqNum) {   //set the form element   var form = duration.form;      //get today's date   var today = new Date();   var todayIntl = intlDate(today);   //set start and end date if not already set   if(start.value == "") start.value = todayIntl;   if(end.value == "") end.value = todayIntl;      //Convert hours to days   var taskDuration = parseFloat(duration.value);   var taskTotalDuration = taskDuration + parseFloat(lagTime.value);   if(dunits == "hrs") taskTotalDuration = taskTotalDuration / hoursPerDay;   var totalDurationFloor = Math.floor(taskTotalDuration);      //Handle task form and main form seperately due to differences in the forms   if(isTaskForm && taskDuration <= 0) {      //Convert to milestone if task is less or equal to zero      if(confirm("Zero duration tasks are considered Milestones.  Do you wish to change this task to a milestone?")) {	 form.milestone.checked = true;	 configureMilestone(form.milestone);      } else {	 duration.value = form.orig_duration.value;      }      return;   } else if (taskDuration <= 0){      //Do not let users zero out tasks      alert("Zero duration tasks are considered Milestones.  Please edit the task by clicking the link if you wish to change this task to a milestone");      return;   }      //create the start date    var aTo = start.value.split("-");   var toDate = new Date(aTo[0],(aTo[1]-1),aTo[2],0,0,1,0);      //add new duration days to the start date   toDate.setDate(toDate.getDate() + totalDurationFloor);      //set end date to this date   end.value = intlDate(toDate);      //Set new duration in taskArray   taskArray[seqNum]["duration"] = taskDuration;   //Adjust time based on new end date   adjustTaskTimeFromDate(start, end, duration, lagTime, end, isTaskForm, predecessor, origStart, origEnd, seqNum);}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/b8f173fefe452f04b10cb8428658fb5696983c30/projectDisplay.js/buggy/www/extras/wobject/ProjectManager/projectDisplay.js