rem: field.value=origField.value; 
add: field.value = origField.value; 
context: function validateDependant(field,origField,seqNum,start,end,duration,lagTime,isTaskForm,origStart,origEnd) {   var pred = field.value;   var newTask = false;   if(pred != "") {      if(seqNum == "") seqNum = taskLength+1;      if(pred < 1) {	 alert(errorMsgs.noPredecessor);	 field.value=origField.value;	 return;      }      if(pred == seqNum) {	 alert(errorMsgs.samePredecessor);	 field.value=origField.value;	 return;      }      if(pred > seqNum) {	 alert(errorMsgs.previousPredecessor);	 field.value = origField.value;	 return;       }            //Set defaults if it's a new record and one of the other options hasn't been checked.      if(start.value == "" || end.value == "") {         //get today's date	 newTask = true;	 duration.value = (dunits == "hrs")?hoursPerDay:1;       }      //Get the predecessor end date and decide where the new start date belongs      var taskStart = start.value;      var taskStartObj = toDateObj(taskStart);      var predTaskEnd = taskArray[pred]["end"];      var predTaskEndObj = toDateObj(predTaskEnd);            //Change start date if it comes before predecessor end date      if(newTask || (taskStartObj.getTime() < predTaskEndObj.getTime())) {	 	 //Convert predecessor hours to days	 var taskTotalDuration = parseFloat(duration.value) + parseFloat(lagTime.value);	 if(dunits == "hrs") taskTotalDuration = taskTotalDuration / hoursPerDay;	 var totalDurationFloor = Math.floor(taskTotalDuration);	 	 //Get the predecessor dayPart	 var predDayPart = parseFloat(pred["dayPart"]);	 if(predDayPart > 0) {	    //The previous task took up part of a day.  Add the additional day part to the duration	    taskTotalDuration += predDayPart;	    totalDurationFloor = Math.floor(totalDurationInDays);	 }	 	 //Set the start date of this task to the end date of the predecessor	 start.value = predTaskEnd;	 //Adjust end date for change in start date	 adjustTaskTimeFromDate(start,end,duration,lagTime,start,isTaskForm,field,origStart,origEnd,seqNum);	 return;      }   }      //Repaint   if(!isTaskForm) {      //Set new predecessor in taskArray      taskArray[seqNum]["predecessor"] = pred;      paintGanttChart();   }}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/b8f173fefe452f04b10cb8428658fb5696983c30/projectDisplay.js/buggy/www/extras/wobject/ProjectManager/projectDisplay.js