function Go(x)
{
	if(x == "nothing")
	{
	 	document.forms[0].reset();
	 	document.forms[0].elements[0].blur();
	 	return;
	}
	else if(x == "end") top.location.href = parent.frames[1].location;
	else
	{
		top.location.href = x
	}
}



function changeBGcolor(id,color)
{
	if (document.getElementById && document.getElementById(id))
	{
		document.getElementById(id).style.background = color;
		return true;
	}
	else if (document.layers && document.layers[id])
	{
		document.layers[id].bgColor = color;
		return true;
	}
}

// JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(4));
	}
	return r;
}
// JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
}

function openPic(url,winName,winParams)	{	//
	var theWindow = window.open(url,winName,winParams);
	if (theWindow)	{theWindow.focus();}
}


if (document.layers) {
	ns = true; ie = false; other = false;
}
else if (document.getElementById) {
     other = true; ie = false; ns = false;
}
else if (document.all) {
     ie = true; ns = false; other = false;
}

function zeigen(name) {
	if (ns) {
    	document.layers[name].visibility = "show";		
    }
    else if (ie) {
    	document.all[name].style.visibility = "visible";
    }
	else if (other) {
		document.getElementById(name).style.visibility = "visible";
	}
}

function verbergen(name) {
	if (ns) {
    	document.layers[name].visibility = "hide";
    }
    else if (ie) {
    	document.all[name].style.visibility = "hidden";
    }
	else if (other) {
		document.getElementById(name).style.visibility = "hidden";
	}
}
