function popupCalendarInt(elem) {
  if (elem == null) {
    return false;
  }
  if ( typeof(popupWin) != "undefined" ) {
     popupWin.close();
  }
  popupWin = window.open('calendar.html','Kalender','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=231,height=250,modal=yes');

  popupWin.HuHu = elem.id;
  popupWin.AllowPast = false;
  return false;
}

function popupCalendarFerien(elem) {
 //alert("sphinx2 ameropa");
 if (elem == null) {
    return false;
  }
  if ( typeof(popupWin) != "undefined" ) {
     popupWin.close();
  }
  popupWin = window.open('html/js/calendarFerien1.jsp','KalenderFerien','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=231,height=250,modal=yes');
//::alert(elem.id);
  popupWin.HuHu = elem.id;
  popupWin.AllowPast = false;
  return false;
}

//function calculateBack()
//{
//  var startdate = document.getElementById('termin').value;
//  var arrstartdate = startdate.split('.');
//  var test = arrstartdate[0]+document.getElementById('naechte').value;
//  var datestartdate = new Date(arrstartdate[2], arrstartdate[1]-1, test);
//  document.getElementById('rueckreisedatum').innerHTML = datestartdate;
//}
