/* Auswahl der LearningGateways */
function GatewayMenu(winName,selObj,restore){
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	winName=winName+String(Math.floor(Math.random()*1000));
	window.open(selObj.options[selObj.selectedIndex].value, winName, "scrollbars=yes,menubar=no,toolbar=yes,status=no,resizable=yes,location=no,width=950,height=700");
  if (restore) selObj.selectedIndex=0;
}

function ImageOpen (url,breite,hoehe,options){
	if( !breite && !hoehe ) {
		Fenster = window.open(url,"Zweitfenster","Width=10,Height=10,status=no,"+options);
	} else {
		Fenster = window.open(url,"Zweitfenster","Width="+breite+",Height="+hoehe+",status=no,"+options);
	}
	Fenster.innerWidth = breite;
	Fenster.innerHeight = hoehe;
	Fenster.focus();
}

function checkForm() {
	
	var error = false;
	
	if( document.mail.EMail.value == "" ) {
		alert("Sie müssen Ihre EMail angeben!");
		return false;
	}
	
	if( document.mail.Betreff.value == "" ) {
		alert("Sie müssen einen Betreff angeben!");
		return false;
	}
	
	if( document.mail.Text.value == "" ) {
		alert("Sie müssen eine Nachricht angeben!");
		return false;
	}
	
	if( error == false ) {
	
		return true;
		
	}
}