window.onload = init; 

function init() {
	fillMonitor(); 
	setNewWindowLinks(); 
}

function fillMonitor() {
	if (typeof(window.innerHeight) == 'number') {
	//Non-IE
	windowHeight = window.innerHeight;
	} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
	//IE 6+ in 'standards compliant mode'
	windowHeight = document.documentElement.clientHeight;
	} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
	//IE 4 compatible
	windowHeight = document.body.clientHeight;
	}

	var pageWrap = document.getElementById('wrap');
	var wrapHeight = pageWrap.offsetHeight; 

	if (wrapHeight < windowHeight) {
		pageWrap.style.height = windowHeight + 'px'; 
	}
}

function setNewWindowLinks() {
	var links = document.getElementsByTagName('a'); 
	var numLinks = links.length; 

	for (var i = 0; i < numLinks; i++) {
		if (links[i].className == 'newWindow') {
			links[i].onclick = function () {
				window.open(this.href); 
				return false; 
			}
		}
	}
}