// script by Paul Bellows

function setTall() {
	if (document.getElementById) {
// read the height of each div element
		var contentHeight = document.getElementById('maintextarea');
		var rightHeight = document.getElementById('righttextarea');
// see if the content div is the tallest and set the style.height of the other two accordingly
		if (contentHeight.offsetHeight >= rightHeight.offsetHeight) {
			rightHeight.style.height = (contentHeight.offsetHeight + 11) + 'px';
			} else {
				contentHeight.style.height = (rightHeight.offsetHeight + 11) + 'px';
			}
		}
	}
window.onload = function() {
	setTall();
}

window.onresize = function() {
	setTall();
}
