function startDateCalWidgetCallback(date, month, year) {
  if (String(month).length == 1) {
      month = '0' + month;
  }
  if (String(date).length == 1) {
      date = '0' + date;
  }    
  today = new Date();
  if (year < today.getFullYear()) {
    alert("You may not create an event in a previous year.");
  } else {
    document.registrationForm['dateArrival'].value = month + "/" + date + "/" + year;
  }
}
function endDateCalWidgetCallback(date, month, year) {
  if (String(month).length == 1) {
      month = '0' + month;
  }
  if (String(date).length == 1) {
      date = '0' + date;
  }    
  today = new Date();
  if (year < today.getFullYear()) {
    alert("You may not create an event in a previous year.");
  } else {
    document.registrationForm['dateDeparture'].value = month + "/" + date + "/" + year;
  }
}
