function resizeContentFrame() {
	frameHeight = 100;
	
	if (self.innerWidth) {
		pageHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		pageHeight = document.documentElement.clientHeight;
	} else if (document.body) {
		pageHeight = document.body.clientHeight;
	}
	
	if ( pageHeight > 300 ){
		frameHeight = pageHeight - 200;
	}
	
	document.getElementById("contentfra").style.height = frameHeight + "px";
}

window.onresize = function() { resizeContentFrame() }
window.onload = function() { resizeContentFrame()  }