function kk_start() {
// alert("xx");
function catcalc(cal) {
  var date = cal.date;
  var time = date.getTime()
  // use the _other_ field
  var field = document.getElementById("bzbt");
  if (field == cal.params.inputField) {
    field = document.getElementById("bzvt");
    //   time -= Date.WEEK; // substract one week
  } else {
    time += Date.YEAR; // add one week
    var date2 = new Date(time);
//       field.value = date2.print("%d.%Y-%m-%d %H:%M");
    field.value = date2.print("%d.%m.%Y");
  }
}

Calendar.setup({
  inputField     :    "bzvt",   // id of the input field
  button         :    "b_bzvt",
//  ifFormat       :    "%Y-%m-%d %H:%M",       // format of the input field
  ifFormat       :    "%d.%m.%Y",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24",
  onUpdate       :    catcalc
});

Calendar.setup({
  inputField     :    "bzbt",
  button         :    "b_bzbt",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc
});
Calendar.setup({
  inputField     :    "bzvt1",
  button         :    "b_bzvt1",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzbt1",
  button         :    "b_bzbt1",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzvt2",
  button         :    "b_bzvt2",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzbt2",
  button         :    "b_bzbt2",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzvt3",
  button         :    "b_bzvt3",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzbt3",
  button         :    "b_bzbt3",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzvt4",
  button         :    "b_bzvt4",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});
Calendar.setup({
  inputField     :    "bzbt4",
  button         :    "b_bzbt4",
  ifFormat       :    "%d.%m.%Y",
  showsTime      :    false,
  timeFormat     :    "24",
//  onUpdate       :    catcalc1
});

}
function start_zimmer_preise() {
		
Calendar.setup({
  inputField     :    "saison_1_von",   
  button         :    "szb1_von",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_1_bis",   
  button         :    "szb1_bis",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_2_von",   
  button         :    "szb2_von",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_2_bis",   
  button         :    "szb2_bis",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_3_von",   
  button         :    "szb3_von",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_3_bis",   
  button         :    "szb3_bis",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_4_von",   
  button         :    "szb4_von",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "saison_4_bis",   
  button         :    "szb4_bis",
  ifFormat       :    "%d.%m",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

}

function start_vorteile() {

Calendar.setup({
  inputField     :    "gueltig_von",   
  button         :    "sb_von",
  ifFormat       :    "%d.%m.%Y",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});

Calendar.setup({
  inputField     :    "gueltig_bis",   
  button         :    "sb_bis",
  ifFormat       :    "%d.%m.%Y",       // format of the input field
  showsTime      :    false,
  timeFormat     :    "24"
});
}

