function resize_iframe()
{

	var height=window.innerWidth;//Firefox
	if (document.body.clientHeight)
	{
		var height=document.body.clientHeight;//IE
	}
	//resize the iframe according to the size of the
	//window (all these should be on the same line)
	document.getElementById("imarco").style.height=parseInt(height - document.getElementById("imarco").offsetTop - 8)+"px";
	/*
	var msg;
	msg = 'iframe.offsetTop' +document.getElementById("imarco").offsetTop;
	msg += 'header.offsetTop' +document.getElementById("header").offsetTop;
	msg += 'header.height' +document.getElementById("header").height;
	alert(msg);
	*/
}

// this will resize the iframe every
// time you change the size of the window.
window.onresize=resize_iframe; 