function fensterhoehe() {
	if (window.innerWidth) {  // Andere Browser
		f_h = window.innerHeight;
	} else if(document.body) { // IE-Syntax
		f_h = document.body.clientHeight;
		if (document.body.offsetHeight == f_h && document.documentElement && document.documentElement.clientHeight) {
			f_h = document.documentElement.clientHeight;
		}
	}
	return f_h;
}

function arbeitsflaeche() {
	f_h = fensterhoehe();
	hoehe_oben = 161;
	hoehe_unten = 36;
	document.getElementById('tab_links_div').style.height = (f_h - hoehe_oben - hoehe_unten + 2) + 'px';
}

function detail() {
	var detail_links = 80;
	parent.window.document.getElementById('ifr').style.height = (f_h - hoehe_oben - hoehe_unten - detail_links + 0) + 'px';
}

function detailwahl(p) {
	var t = CheckAuswahl(p);
	parent.window.document.getElementById('ifr').src = prefix + 'iframe/'+ t + '.html';
	detail();
	document.getElementById('detail_iframe').style.visibility = 'visible';
}

function CheckAuswahl(p) {
	var si = (p.options[p.selectedIndex].value);
	var fr = document.getElementById("ifr");
	if (document.all) { //IE
		fr.document.body.focus();
	} else { //Firefox
		fr.contentDocument.body.focus();
	}
	return si;
}
