function DiffDays(date1, date2)
{
// Parameters :
// date1 : Date object
// date2 : Date object
// Returns : Number of days between date1 and date2
var iDate2Time = date2.getTime();
var iDate1Time = date1.getTime();
var iReturn = (iDate2Time-iDate1Time); // /(1000*60*60*24);
return (iReturn);
}