<!--
var showToolTip = -1;
var Ex, Ey, toolTipContent;

function ToolTipMove(layerName, FromTop, FromLeft, e)
{
	document.getElementById(layerName).style.top = FromTop;
	document.getElementById(layerName).style.left = FromLeft + 15;
}

function ToolTipOn()
{
	showToolTip = 1;
}

function ToolTipOff()
{
	showToolTip = 0;
}

function ToolTipStart(e)
{
	if(showToolTip == 1)
	{
		Ex = document.all ? window.event.x : e.pageX;
		Ey = document.all ? window.event.y : e.pageY;
		ToolTipMove("ToolTip", Ey, Ex, e);
		document.getElementById('ToolTip').style.visibility = "visible";
	}
	if(showToolTip == 0)
	{
		ToolTipMove("ToolTip", 0, 0);
		document.getElementById('ToolTip').style.visibility = "hidden";
		showToolTip = -1;
	}
}

function ToolTip(layerName, title, content)
{
	toolTipContent = '<table class="tooltip">'
								+'<tr><td class="tooltip-title">' + title + '</td></tr>'
								+'<tr><td class="tooltip-content">' + content + '</td></tr>'
								+'</table>';
	document.getElementById(layerName).innerHTML = toolTipContent;
}


function statusbar_message (message_text)
{
	dm(message_text);
}

function openwin (winname, location, winwidth, winheight, scrollbars)
{
	openwin_xy (winname, location, winwidth, winheight, scrollbars, screen.width/2-(winwidth/2), screen.height/2-(winheight/2))
}

function openwin_xy (winname, location, winwidth, winheight, scrollbars, x, y)
{
	if (scrollbars == "") { scrollbars = ",scrollbars=no," } else { scrollbars = "," + scrollbars + "," }
	fenster = window.open ('', winname, 'width=' + winwidth + ',height=' + winheight + scrollbars + 'resizable=yes,toolbar=no,status=no,directories=no,menubar=no,location=no');
	fenster.moveTo (x, y);
	fenster.location.href = location;
	fenster.focus ();
}

function dm (msg)
{
	if (msg != "") statusTextOn(msg); else statusTextOff()
}

function statusTextNS6 ()
{
	window.status = statustxt;
	return true
}

function statusTextOn (msg)
{
	statustxt = msg;
	if (NS6) document.addEventListener("mousemove", statusTextNS6, false);
	window.status = statustxt;
	return true
}

function statusTextOff ()
{
	statustxt = "";
	if (NS6) document.removeEventListener("mousemove", statusTextNS6, false);
	window.status = statustxt;
	return true
}

function checkTextObj (textobj, minlen)
{
	var str = new String (textobj.value);
	if (textobj.name.indexOf ("email") >= 0)
	{
		if ((str.indexOf ("@") < 1) || (str.lastIndexOf (".") < str.lastIndexOf ("@"))) return (-2);
	}
	if (str.length < minlen) return (-1);
	return (0);
}
//-->
