
function showCal(eile){
   if (document.getElementById) {
      with (document.getElementById('date' + eile).style){
      display = 'inline';
       
      }
   }
}

function hideCal(eile){
   if (document.getElementById) {
      document.getElementById('date' + eile).style.display = 'none';
   }
}
function updateDateControl(controlName, dateValue) {
    if (document.getElementById) {
        alert("COntrolName = " + controlName + "") ;
        alert("Date Value = " + dateValue + "") ;
  eval('document.form1.' + controlName + 'day.value = ' + dayValue);
} 
} 
function sendVal(control, dayValue,monthValue,yearValue){
    if (document.getElementById) {
      eval('document.form1.'+ control +'day.value =' + dayValue) ;
      eval('document.form1.'+ control +'month.value =' + monthValue) ;
      eval('document.form1.'+ control +'year.value =' + yearValue) ;

      if (control == "arrive") { 
         hideCal(1);
      }
      else {
         hideCal(2);
      }
        }
   }   