function fixStuff(){ var x = document.getElementsByTagName('td'); var maxHeight = 80; for ( i = 0 ; i < x.length ; i++ ) { if (x[i].offsetHeight > maxHeight && x[i].parentNode.parentNode.parentNode.id == "calendar") { maxHeight = x[i].offsetHeight; } } for ( i = 0 ; i < x.length; i++ ) { if (x[i].parentNode.parentNode.parentNode.id == "calendar") { x[i].style.height = maxHeight; } } if (!document.getElementsByTagName) { return; } var anchors = document.getElementsByTagName("a"); for (var i = 0; i < anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.href.substr(11,16) != "riverhelpers.com") { anchor.target = "_blank"; } } if (document.getElementById('calendar')) { var x = document.getElementsByTagName('td'); var maxHeight = 120; for ( i = 0 ; i < x.length ; i++ ) { if (x[i].offsetHeight > maxHeight) { maxHeight = x[i].offsetHeight; } } for ( i = 0 ; i < x.length ; i++ ) { x[i].style.height = maxHeight + 'px'; } } } window.onload = fixStuff;