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 show_hide (id)
{
    if (document.getElementById(id).style.display == 'none')
    {
        document.getElementById(id).style.display = "";
    }
    else
    {
        document.getElementById(id).style.display = "none";
    }
}

function over_image(id)
{
 // if (document.getElementById(id).src.indexOf('2') == -1)document.getElementById(id).src = id+"2.gif";
  // else document.getElementById(id).src = id+".gif";
}

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="";
}
