function Abfrage(frage, url)
{
  if (confirm(frage)) {
    location.href=url;
  }
}

function Display(id, mode)
{
  if (mode == 'show') {
    document.getElementById(id).style.display = 'block';
  } else {
    document.getElementById(id).style.display = 'none';
  }
}

function titlemenu_mouseover(id) {
  document.getElementById("titlemenu_left_cell_" + id).style.backgroundColor = "";
  document.getElementById("titlemenu_left_cell_" + id).style.background = "url(images/linie_lila.png)";
  document.getElementById("titlemenu_mid_" + id).style.backgroundColor = "";
  document.getElementById("titlemenu_mid_" + id).style.background = "url(images/linie_lila.png)";
  document.getElementById("titlemenu_right_cell_" + id).style.backgroundColor = "";
  document.getElementById("titlemenu_right_cell_" + id).style.background = "url(images/linie_lila.png)";

  Display("titlemenu_left_" + id, "hide");
  Display("hover_titlemenu_left_" + id, "show");
  Display("titlemenu_right_" + id, "hide");
  Display("hover_titlemenu_right_" + id, "show");
}
  
function titlemenu_mouseout(id) {
  document.getElementById("titlemenu_left_cell_" + id).style.background = "";
  document.getElementById("titlemenu_left_cell_" + id).style.backgroundColor = "#A593FF";
  document.getElementById("titlemenu_mid_" + id).style.background = "";
  document.getElementById("titlemenu_mid_" + id).style.backgroundColor = "#A593FF";
  document.getElementById("titlemenu_right_cell_" + id).style.background = "";
  document.getElementById("titlemenu_right_cell_" + id).style.backgroundColor = "#A593FF";

  Display("hover_titlemenu_left_" + id, "hide");
  Display("titlemenu_left_" + id, "show");
  Display("hover_titlemenu_right_" + id, "hide");
  Display("titlemenu_right_" + id, "show");
}

// IE/Firefox/Opera... Layer-Ermittlung
function getElement(name) {
  if (document.getElementById) {
    return document.getElementById(name);
  } else {
    return document.all[name];
  }
}