function setToolTip(str)
{
        document.getElementById("tt").innerHTML=str;
}

WMTT=null;
document.onmousemove=updateToolTip;

function updateToolTip(e) 
{
        x=(document.all)?window.event.x+document.body.scrollLeft:e.pageX;
        y=(document.all)?window.event.y+document.body.scrollTop:e.pageY;
        if (WMTT!=null) 
        {
                if(position!='left')
                {
                        versetzung=15;
                }
                else
                {
                        versetzung=-320;
                }
                
                WMTT.style.left=x+0+'px';
                WMTT.style.top=y+30+'px';
        }
}

function showToolTip(id,inputposition) 
{
        position=inputposition;
        WMTT=document.getElementById(id);
        WMTT.style.display='block'
}

function hideToolTip() 
{
        if (WMTT!=null) WMTT.style.display='none';
}

