<!--
function statusbar_message (message_text)
{
	window.status = 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=no,toolbar=no,status=no,directories=no,menubar=no,location=no');
	fenster.moveTo (x, y);
	fenster.location.href = location;
	fenster.focus ();
}

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

function openwin_p_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 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 (textobj.name.indexOf("fon") >= 0 || textobj.name.indexOf("fax") >= 0 || textobj.name.indexOf("mobil") >= 0 || textobj.name.indexOf("plz") >= 0) {
		z = 0;
		for(i = 0; i < textobj.value.length; ++i) {
			if ((textobj.value.charAt(i) < "0" || textobj.value.charAt(i) > "9") || (textobj.name.indexOf("plz") < 0 && textobj.value.charAt(i) != " ")) z = -2;
		}
		if (z < 0) return z
	}

	if (str.length < minlen) return (-1);
	return (0);
}

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

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

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

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

