function addOnloadEvent(theFunction) {

	if (typeof window.addEventListener != "undefined") {
		window.addEventListener("load", theFunction, false);

	} else {

		if (typeof window.attachEvent != "undefined") {
			window.attachEvent("onload", theFunction);

		} else {

			if (window.onload != null) {
				var OldLoad = window.onload;

				window.onload = function(e) {
					OldLoad(e);
					window[theFunction]();

				};

			} else {
				window.onload = theFunction;

			}

		}

	}

}

function getElementByDocumentSupport(theID) {

	if (!theID.nodeName) {

		if (typeof document.getElementById != "undefined") {
			return document.getElementById(theID);

		} else {

			if (typeof document.layers != "undefined") {
				return document.theID;

			} else {
				return document.all.theID;

			}

		}

	} else {
		return theID;

	}

}

function getElementsByTagSupport(theTag) {

	if (typeof document.getElementsByTagName != "undefined") {
		return document.getElementsByTagName(theTag);

	} else {

		if (typeof document.all != "undefined") {
			return document.tags(theTag);

		} else {
			return null;

		}

	}

}

function setEventHandlers() {
	var linksArr = getElementsByTagSupport("a");

	for (var i = 0; i < linksArr.length; i++) {

		if (linksArr[i].className.indexOf("New") != -1) {

			linksArr[i].onclick = function() {
				window.open(this.href);
				return false;

			};

			linksArr[i].onkeypress = function() {
				window.open(this.href);
				return false;

			};

		}

	}

}

addOnloadEvent(setEventHandlers);