function Fensterhoehe(){
	if (window.innerHeight){
		return window.innerHeight;
	}else if (document.body && document.body.offsetHeight){
		return document.body.offsetHeight;
	}else{
		return 0;
	}
}

function Fensterbreite(){
	if (window.innerWidth) {
		return window.innerWidth;
	} else if (document.body && document.body.offsetWidth) {
		return document.body.offsetWidth;
	} else {
		return 0;
	}
}

function resi(){
	var hoehe = Fensterhoehe()-152;
	hoehe = hoehe+"px";
	document.getElementById("links_unten").style.height=hoehe;
	document.getElementById("rechts_unten").style.height=hoehe;
	var hoehe = Fensterhoehe()-172;
	hoehe = hoehe+"px";
	document.getElementById("mitte_unten").style.height=hoehe;
	var breite = Fensterbreite();
	if (breite <= 996){
		document.getElementById("mitte_oben").style.width="618px";
		document.getElementById("mitte_mitte").style.width="618px";
		document.getElementById("mitte_unten").style.width="610px";
		document.getElementById("rechts_unten").style.right="auto";
		document.getElementById("rechts_unten").style.left="828px";
		document.getElementById("rechts_oben").style.right="auto";
		document.getElementById("rechts_oben").style.left="828px";
	}else{
		document.getElementById("mitte_oben").style.width="auto";
		document.getElementById("mitte_mitte").style.width="auto";
		document.getElementById("mitte_unten").style.width="auto";
		document.getElementById("rechts_oben").style.right="0px";
		document.getElementById("rechts_oben").style.left="auto";
		document.getElementById("rechts_unten").style.right="0px";
		document.getElementById("rechts_unten").style.left="auto";
	}
}

function openlogin() {
	window.open("/de//login.php", "Login" ,"menubar=no,width=400,height=160,status=no,scrollbars=no,resizable=no,alwaysRaised=yes");
}
function openloginen() {
	window.open("/en//login.php", "Login" ,"menubar=no,width=400,height=160,status=no,scrollbars=no,resizable=no,alwaysRaised=yes");
}
function openlogout() {
	window.open("/de//logout.sp", "", "menubar=no,width=300,height=160,status=no,scrollbars=no,resizable=no,alwaysRaised=yes");
}
function openlogouten() {
	window.open("/en//logout.sp", "", "menubar=no,width=300,height=160,status=no,scrollbars=no,resizable=no,alwaysRaised=yes");
}

function openAnmeldungMasterprogram(id) {
	var w = window.open ("https://www.e-lms.de/imc/anmeldungen/anmeldung_masterprogram.php?st_id="+id, "Anmeldung", "height=670,width=650,location=no,menubar=no,resizable=no,scrollbars=yes,status=yes,toolbar=no");
	w.focus();
}
function openRegGBOI() {
	var w = window.open ("https://www.e-lms.de/imc/anmeldungen/register_masterprogram_gboi.php", "Registration", "height=670,width=650,location=no,menubar=no,resizable=no,scrollbars=yes,status=yes,toolbar=no");
	w.focus();
}
var x
function NeuFenster65_45(x)
 {
  MeinFenster =
  window.open(x, "Fenster65_45", "width=650,height=450,screenX=10,screenY=10");
  MeinFenster.focus();
 }
function NeuFenster65_65(x)
 {
  MeinFenster =
  window.open(x, "Fenster65_65", "width=650,height=650,screenX=10,screenY=10");
  MeinFenster.focus();
 }



