function gehehin(calendar) {
if (calendar.dateClicked) {
  var y = calendar.date.getFullYear();
      var m = calendar.date.getMonth() + 1;     // integer, 0..11
      var d = calendar.date.getDate();      // integer, 1..31
      // redirect...
		dieurl = "" + d + "-" + m + "-" + y + ".php";
		
      window.location = dieurl
 }
};

function einrichten() {

Calendar.setup({
        inputField     :    "f_date_e",     // id of the input field
        ifFormat       :    "%d/%m/%Y",     // format of the input field (even if hidden, this format will be honored)
        //displayArea    :    "show_e",       // ID of the span where the date is to be shown
        daFormat       :    "%A, %B %d, %Y",// format of the displayed date
        button         :    "f_trigger_e",  // trigger button (well, IMG in our case)
        align          :    "Bl",           // alignment (defaults to "Bl")
        singleClick    :    true
		  //FlatCallback : dateChanged           // our callback function
    });
}
