function opoMpsTTUpdateTermin(idToChange, formNameForDayValue, formNameForYearMonthValue){
   var form = document.forms['packagesSearchPodForm'];
   
   var day = form[formNameForDayValue].value;
   var yearMonth = form[formNameForYearMonthValue].value;
   var month = yearMonth.substring(4);
   var year = yearMonth.substring(0,4);
   var termin = day + '.' + month + '.' + year;
   var element = document.getElementById(idToChange);
   element.value = termin;
//   alert('termin: ' + document.getElementById(idToChange).value);
}
/*
function opodo_mps_tt_update_reucktermin(id){
   var day = document.packagesSearchPodForm.returnDateDay.value;
   var yearMonth = document.packagesSearchPodForm.returnDateMonthYear.value;
   var month = yearMonth.substring(4);
   var year = yearMonth.substring(0,4);
   var termin = day + '.' + month + '.' + year;
   var element = document.getElementById(id);
   element.value = termin;
//   alert('termin: ' + document.getElementById(id).value);
}
*/
function opoMpsTTSetFlexTime(elem) {

   var form = document.forms['packagesSearchPodForm'];
   var value = elem.value;

   if (value == 0) {
      form.flextime.value = 2;
   } else {
      form.flextime.value = "";
   }
}