//--------------------------DropDownMenue-----------------------------------
function QuickJump(Formular)
{
    var Element = Formular.Ziel.selectedIndex;

    if (Formular.Ziel.options[Element].value != 0)
    {
        location = Formular.Ziel.options[Element].value;
    }
}

//-------------------Erklärungsboxen-----------------------------------------
var Initialisierung = 0;
var Ex, Ey, TitelFarbe, TextFarbe, ContentInfo;

var TitelFarbe = "lightblue";
var TextFarbe = "white";


function ToolTipBewegen(layerName, FromTop, FromLeft, e)
{
    document.getElementById(layerName).style.top = FromTop + "px";
    document.getElementById(layerName).style.left = FromLeft + "px";
}


function Aktivieren()
{
    Initialisierung = 1;
}


function Deaktivieren()
{
    Initialisierung = 0;
}


function Starten(e)
{
    if(Initialisierung)
    {
                //Ex = e.pageX;
        //Ey = e.pageY;
                Ex = document.all ? window.event.x : e.pageX;
        Ey = document.all ? window.event.y : e.pageY;

        ToolTipBewegen("ToolTip", Ey, Ex, e);
        document.getElementById('ToolTip').style.visibility = "visible";
    }
    else
    {
//        ToolTipBewegen("ToolTip", 0, 0);
        document.getElementById('ToolTip').style.visibility = "hidden";
    }
}


function ToolTip(layerName, TTitel, TInhalt)
{
    ContentInfo = '<table border="0" width="150" cellspacing="0" cellpadding="0">'+'<tr><td width="100%" bgcolor="#000000">'+'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+'<tr><td width="100%" bgcolor='+TitelFarbe+'>'+'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+'<tr><td width="100%">'+'<font class="ToolTipTitel"> '+TTitel+'</font>'+'</td></tr>'+'</table>'+'</td></tr>'+'<tr><td width="100%" bgcolor='+TextFarbe+'>'+'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+'<tr><td width="100%">'+'<font class="ToolTipInhalt">'+TInhalt+'</font>'+'</td></tr>'+'</table>'+'</td></tr>'+'</table>'+'</td></tr>'+'</table>';
    document.getElementById(layerName).innerHTML = ContentInfo;
}
