function calendarAddDay(row, day){
//Create date object from input date
// dateStr format must be month/day/year
var dateStr = eval("document.all.date2_"+row+".value");
var dd = dateStr.split('-');
var convertDate = dd[1]+"/"+dd[2]+"/"+dd[0];
var put = row+1;
var input = eval("document.all.date1_"+put);
//alert(convertDate);
var date = new Date(convertDate);
var d = date.getDate();
var m = date.getMonth();
var y = date.getYear();
var NextDate= new Date(y, m, d+1);
var mm =NextDate.getMonth()+1;
mm = checkZero(mm);
var dds = NextDate.getDate();
dds = checkZero(dds);
var strDate = NextDate.getFullYear()+"-"+mm+"-"+dds;
//alert(strDate);
input.value = strDate;
}
function checkZero(i)
{
if (i<10)
{
i="0" + i;
}
return i;
}