function fixContentHeight(){
	var h1 = xHeight("contentcol");
	var h2 = xHeight("leftcol");
	var h3 = xHeight("rightcol");
	var max = ((h1 > h2) && (h1 > h3)) ? h1 : ((h2 > h3) ? h2 : h3);
	var cc = MM_findObj("contentcol");
	if (cc) cc.style.height = max+"px";
}


function xHeight(e,uH) {
	if(!(e=MM_findObj(e)) || (uH && uH<0)) return 0;
		uH=Math.round(uH);
		var css=xDef(e.style);
	if(css && xDef(e.style.height,e.offsetHeight) && typeof(e.style.height)=="string") {
		uH=e.offsetHeight;
	}
	else if(css && xDef(e.style.pixelHeight)) {
	if(arguments.length>1) e.style.pixelHeight=uH;
		uH=e.style.pixelHeight;
	}
	else if(xDef(e.clip) && xDef(e.clip.bottom)) {
	if(arguments.length>1) e.clip.bottom=uH;
		uH=e.clip.bottom;
	}
	return uH;
}

function xDef() {
  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=="" || typeof(arguments[i])=="undefined") return false;}
  return true;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


window.onload = function() {
	// bei onload groesse content-hoehe ggf. anpassen
	fixContentHeight();
}



function openZoomWindow(url, windowName){
	var windowWidth 	= 450;
	var windowHeight 	= 350;
	var attributes = "width=" + windowWidth + ",height=" + windowHeight + ",menubar,resizable,scrollbars,status";
	var attributes = "menubar,resizable,scrollbars,status";

	openWindow(url, windowName, attributes);
}

function openWindow(url, windowName, attributes) {
	var newWindow = window.open(url, windowName, attributes);
	if (window.focus) {
		newWindow.focus();
	}
}

