function nachfrage(url, objekt)
{
  var name=confirm("Delete "+objekt+"?")
  if (name==true)
  {
    window.location.href = url;
  }
}

function klappen (id)
{
    if (document.getElementById(id).style.display == 'none')
    {
        document.getElementById(id).style.display = "";
        document.getElementById("img_" + id).src = "minus.gif";
    }
    else
    {
        document.getElementById(id).style.display = "none";
        document.getElementById("img_" + id).src = "plus.gif";
    }
}


function klappen_text (id)
{
    if (document.getElementById(id).style.display == 'none')
    {
        document.getElementById(id).style.display = "";
        document.getElementById(id+"_text").innerHTML = "less info";
    }
    else
    {
        document.getElementById(id).style.display = "none";
        document.getElementById(id+"_text").innerHTML = "more info";
    }
}


function over_titel(id, id_schrift, schrift, bg)
{
     document.getElementById(id).bgColor = bg;
     document.getElementById(id_schrift).style.color = schrift;
}


function over_horizontal(id, schrift, bg, anz_spalten)
{
    document.getElementById('tabelle_1').getElementsByTagName('tr')[id].bgColor= bg;
    
    for(i=0;i<anz_spalten;i++)
    {
      document.getElementById('tabelle_1').getElementsByTagName('td')[anz_spalten*id+i].style.color = schrift;
    }
}


function textfeld(id, text)
{
  if (document.getElementById(id).value==text)document.getElementById(id).value="";
}