rem: function calculateDate(year, month, day, ndays, nmonths, after) { var newdate = new Date(year, month-1, day); if (ndays != 0) { if (after == 1) newdate.setDate(newdate.getDate()+ndays); else newdate.setDate(newdate.getDate()-ndays); 
add: calculateDate: function(input, deltadays, deltamonths) {  var dateobj = new Date(input["year"], input["month"]-1, input["day"]);   if (deltadays != 0)   dateobj.setDate(dateobj.getDate()+deltadays); if (deltamonths != 0) dateobj.setMonth(dateobj.getMonth()+deltamonths);   output = Array(); output["day"] =   dateobj.getDate(); output["month"] = dateobj.getMonth()+1; output["year"] =  dateobj.getFullYear(); return output; 
context: function calculateDate(year, month, day, ndays, nmonths, after){  var newdate = new Date(year, month-1, day);  if (ndays != 0)  {    if (after == 1) newdate.setDate(newdate.getDate()+ndays);    else newdate.setDate(newdate.getDate()-ndays);  }  else  {    if (after == 1) newdate.setMonth(newdate.getMonth()+nmonths);    else newdate.setMonth(newdate.getMonth()-nmonths);  }  output = Array();  output["d"] = newdate.getDate();  output["m"] = newdate.getMonth()+1;  output["y"] = newdate.getFullYear();  return output;}
meta: 7363	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7363/ba330fe3d1985d33cce09b09b062dbd341b2facd/timereg.js/clean/javascript/timereg.js