window.defaultStatus = "Portugal Schulung";

onerror = stopError;

function stopError() {
	return true;
}

function popup(url,name,eigenschaften){
	pop = window.open(url,name,eigenschaften);
	pop.focus();
}

TO = "";
who = "";

function show_layer(x){
	who = x;

	if (document.layers)
		document.layers[x].visibility="show";
	else if (document.all)
		document.all[x].style.visibility="visible";
	else if (document.getElementById)
	     	document.getElementById(x).style.visibility="visible";
}

function hide_layer(x){
	if(TO != "")
		clearTimeout(TO);
	if (document.layers)
		document.layers[x].visibility="hide";
	else if (document.all)
		document.all[x].style.visibility="hidden";
	else if (document.getElementById)
		document.getElementById(x).style.visibility="hidden";
	who = "";
}

function hide(){
	if(who != "")
		hide_layer(who);
}

function newwin (path,name,breite,hoehe){
	breitex = breite;
	hoehex = hoehe;
	pop = window.open (path,name,"width="+breite+",height="+hoehe+",resizable=no,scrolling=no,scrollbars=no");
	posx = (screen.width - breitex)/2;
	posy = (screen.height - hoehex)/2;
	pop.moveTo(posx, posy);
	pop.focus();
}

<!-- Begin rechte Maustaste sperren -->
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Diese Funktion ist nicht verfügbar.");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End rechte Maustaste -->

function zeige(lcontent) {
	var lcontent = lcontent;
	if(document.getElementById(lcontent).style.display == 'none'){
		document.getElementById(lcontent).style.display = '';
	} else {
		document.getElementById(lcontent).style.display = 'none';
	}
}

function gewinnspiel() {
	pop1 = window.open('gewinnspiel.php?session='+session,'Gewinnspiel','width=797,height=600,scolling=1,scrollbars=1,resize=0');
	pop1.focus();
}

function agb_zeigen() {
	pop2 = window.open('agb_pop.php','agb','width=797,height=600,scolling=1,scrollbars=1,resize=0');
	pop2.focus();
}