function altura() {
	var f1 = document.getElementById("frame-main");
	var f2 = document.getElementById("frame-menu");
	var h1 = f1.contentWindow.document.documentElement.scrollHeight;
	var h2 = f2.contentWindow.document.documentElement.scrollHeight;
	if (h1 > h2) { h = h1; }
	else { h = h2; }
	h = h + "px";
	f1.style.height = h;
	f2.style.height = h;
}

function ajusta() {
	var f1 = document.getElementById("frame-main");
	var f2 = document.getElementById("frame-menu");
	var boh = f1.contentWindow.document.body.offsetHeight;
	var bsh = f1.contentWindow.document.body.scrollHeight;
	var dch = f1.contentWindow.document.documentElement.clientHeight;
	var dsh = f1.contentWindow.document.documentElement.scrollHeight;
	if (boh > bsh) { h = bsh; } // content reduction IE6 and Opera85
	else if (dch == 0) { h = bsh; } // content enlarge IE6
	else if (bsh == dsh) { h = bsh; } // content enlarge Opera85
	else { h = boh; } // FF
	if (f1.contentWindow.document.body.id != "main" && h < 560 ) { h = 560; }
	h = h + "px";
	f1.style.height = h;
	f2.style.height = h;
}

window.onload = altura;