document.onmousemove = updateWMTT;
wmtt= null ;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.clientX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.clientY;
	if (wmtt != null) {
		wmtt.style.left = (x + 20) + "px";
		wmtt.style.top 	= (y + 20) + "px";
	}
}

function hideWMTT() {
	wmtt.style.display = "none";
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block";
}

function showTooltip(text) {
	wmtt = document.getElementById("tooltip");
	wmtt.innerHTML="";
	var t=document.createTextNode(text);
	wmtt.appendChild(t);
	wmtt.style.display = "block";
}

function showLang()
{
	identity=document.getElementById("lang");
	identity.className="langshown";
}
function hideLang()
{
	identity=document.getElementById("lang");
	identity.className="langhidden";
}

function newwin(name)
{
	win=window.open("","window",menubar=false,status=false);
	win.document.write('<script type="text/javascript" src="style/tooltips.js" ></script>');
	win.document.write('<textarea id="text">' + document.getElementById(name).value + '</textarea>');
	win.document.getElementById("text").style.width="100%";
	win.document.getElementById("text").style.height=win.innerHeight-30;
	win.document.write('<input type="button" onclick="take()" value="übernehmen" />');
	return(false);
}

function take()
{
	window.alert("bla");
}
