function submenu(x)
{
	if((typeof ito) != 'undefined') window.clearInterval(ito);
	if((typeof old) != 'undefined')
	{
		if(x != old)
		{
			document.getElementById(old).style.visibility="hidden";
			document.getElementById(x).style.visibility="visible";
			old=x;
			if((typeof ber) != 'undefined')
			{
				if(ber != x) ito=window.setInterval("submenu(ber)",8000);
			}
		}
	}
	else
	{
		old=x;
	}
}

function show(r,id)
{
	if((typeof oldgrp) != 'undefined') document.getElementById(oldgrp).style.visibility="hidden";
	document.getElementById(id).style.visibility="visible";
	oldgrp=id;
}

function show1(r,id)
{
	if((typeof oldgrp1) != 'undefined') document.getElementById(oldgrp1).style.visibility="hidden";
	document.getElementById(id).style.visibility="visible";
	oldgrp1=id;
}

function bild(url,wname,x,y)
{
	if(navigator.userAgent.match(/Opera/))
	{
		x += 16;
		y += 75;
	}
	else
	{
		y += 80;
	}
	if((x>(screen.width-256)) || (y>(screen.height-256)))
	{
		x=Math.min(x,(screen.width-256));
		y=Math.min(y,(screen.height-256));
		open(url,wname,'width='+x+',height='+y+',dependent=yes,resizable=yes,scrollbars=yes');
	}
	else
	{
		open(url,wname,'width='+x+',height='+y+',dependent=yes,resizable=yes,scrollbars=no');
	}
}

function ipcss1(obj)
{
	obj.style.backgroundColor='#FFFFCC';
	if(obj.value.match(/eingeben/)) obj.value='';
	if(obj.value.match(/inserisca/)) obj.value='';
	if(obj.value.match(/insert/)) obj.value='';
}
function ipcss2(obj)
{
	obj.style.backgroundColor='#FFFFFF';
	if(!obj.value && obj.defaultValue.match(/eingeben/)) obj.value=obj.defaultValue;
	if(!obj.value && obj.defaultValue.match(/inserisca/)) obj.value=obj.defaultValue;
	if(!obj.value && obj.defaultValue.match(/insert/)) obj.value=obj.defaultValue;
}
