function changeFlag(action,flagIdx,lang) {
  if (lang == "de") {
    img_over = "/images/icon_flag-on_de.gif";
    img_out = "/images/icon_flag-off_de.gif";
  }
  if (lang == "en") {
    img_over = "/images/icon_flag-on_en.gif";
    img_out = "/images/icon_flag-off_en.gif";
  }
  if (lang == "ch") {
    img_over = "/images/icon_flag-on_ch.gif";
    img_out = "/images/icon_flag-off_ch.gif";
  }
  if (action == "over") { 
    source = img_over;
    tColor = "#000000";
  } else {
      source = img_out;
      tColor = "#898989";
  }
  if (document.all) {
      document.all["flagText"+flagIdx].style.color = tColor;
  } else {
      document.getElementById("flagText"+flagIdx).style.color = tColor;
    }
  document.images["flag"+flagIdx].src = source;
}

function showDate() {
  date    = new Date();
  year     = date.getFullYear();
  month    = date.getMonth()+1;
  day      = date.getDate();
  date_strg = twoDigit(day) + "." + twoDigit(month) + "." + year;
  return date_strg;
}

function twoDigit(digit) {
  if (digit < 10) digit = "0" + digit;
  return digit;
}
