function popup(url,breite,hoehe){
	fenster = window.open(url, "fenster1", "width = " + breite +", height="+hoehe+", status=yes, scrollbar=no, resizable=yes");
	fenster.focus();
}

function showall(i,a){
	document.getElementById(i).style.visibility = "hidden";
	document.getElementById(a).style.visibility = "visible";
	
}


function testa(i,a){
	if(a == null){
		alert();
	}
	else{
	
		alert(a);
	}
}



function test(idVorschau, idAll) {

	if(idAll == null){
		if(document.getElementById(idVorschau).style.visibility == "visible"){
			document.getElementById(idVorschau).style.visibility = "hidden";		
		}else{
			document.getElementById(idVorschau).style.visibility = "visible";		
		}
	}
	else{
		if(document.getElementById(idVorschau).style.visibility == "visible") {
		document.getElementById(idAll).style.visibility = "visible";
		document.getElementById(idVorschau).style.visibility = "hidden";
		}
		else {
			document.getElementById(idAll).style.visibility = "hidden";
			document.getElementById(idVorschau).style.visibility = "visible";
		}
	}

	
}


<!--@author moromer-->
function switchlayout(id1, id2){
	if(id1 != null && id2 != null){
		if(document.getElementById(id1).style.display == 'none'){
			document.getElementById(id1).style.display = 'block';
			document.getElementById(id2).style.display = 'none';
		}
		else{
			document.getElementById(id2).style.display = 'block';
			document.getElementById(id1).style.display = 'none';
		}
	}else{
		if(id1 != null){
			if(document.getElementById(id1).style.display == 'block'){
				document.getElementById(id1).style.display = 'none';
			} else {
				document.getElementById(id1).style.display = 'block';
			}
		}
	}

}



function jumptoteacher(id){
	if(id != null){
		document.getElementById(id).style.color='#F26C25';


		for(i=1;i<=10;i++){
			if(i != id){
				document.getElementById(i).style.color='#000000';
			}
		}

	}
}