var minHeight;

function setHeight(newHeight) {
   minHeight = newHeight;
   checkHeight();
}

function checkHeight() {
	var docHeight = 5;
	
	if (typeof(window.innerWidth) == 'number') {
		docHeight = window.innerHeight;
	} else if (document.documentElement && (document.documentElement.clientHeight)) {
		docHeight = document.documentElement.clientHeight;
	} else if (document.body && (document.body.clientHeight)) {
		docHeight = document.body.clientHeight;
	}
	
	if (docHeight < minHeight) {
		document.getElementById('content').style.height = minHeight;
	} else {
		document.getElementById('content').style.height = '100%';
	}
}
