////////////////////////////////////////////////////////////////

function quick(womit) {
	if(womit.selectedIndex != 0 && womit.selectedIndex != 1)
		location.href = womit.options[womit.selectedIndex].value;
}

/////////////////////////////////////////////////////////////////

function IsNetscape() {
	var bName = navigator.appName;
	return (bName == "Netscape");
}

/////////////////////////
	
	function IsIE() {
	 var bName = navigator.appName;
	 return (bName == "Microsoft Internet Explorer");
	} 
  
/////////////////////////////////////////////////////////////////
  
function openWindow(url,name,x,y,w,h,scrolling,resize) {
	if (IsNetscape()) w = w-2;
	var re = (resize) ? "yes" : "no";
	options = 'left='+x+',top='+y+',width='+w+',height='+h+',toolbar=no,location=no,status=no,menubar=yes,scrollbars='+scrolling+',resizable='+re+',dependent=no,hotkeys=no,directories=no';
	win = window.open(url,name,options);
	win.focus();  
} 
     
/////////////////////////////////////////////////////////////////
		 
function openSitemap() {
  openWindow('/funktionen/sitemap/start.php','sitemap',190,100,320,500,'yes',true);
}

/////////////////////////////////////////////////////////////////

function showNavi(rein,raus) {
	document.getElementById(rein).style.visibility = "visible";
	document.getElementById(raus).style.visibility = "hidden";
}

/////////////////////////////////////////////////////////////////

function background() {
	var height = document.getElementById("menueFach").offsetHeight - 87;
	height = Math.max(height, document.getElementById("menuePatient").offsetHeight - 87);
	height = Math.max(height, document.getElementById("content").offsetHeight);
	//// falls Indexseite prüfen (anderer Aufbau)
	if(document.getElementById("indexrightside")) {
		height = Math.max(height, document.getElementById("indexrightside").offsetHeight - 20);
		document.getElementById("background").style.width = "482px";
	}
	else height = Math.max(height, document.getElementById("rightside").offsetHeight - 70);
	if(document.all) height = Math.max(height, document.body.offsetHeight - 220);
	else height = Math.max(height, window.innerHeight - 220);

	document.getElementById("background").style.height = height + 20;
}

window.onresize = background;

/////////////////////////////////////////////////////////////////

