
	  function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

	function updateLinks() {
		for (i = 0; i < theLinks.length; i++) {
			var thisLink = theLinks.item(i);
			if (thisLink.href.indexOf(thisDomain) == -1 && thisLink.href.indexOf("javascript") == -1 && thisLink.href !="https://pcu.ttcu.org/asp/USERS/Common/Login/NetLogin.asp" && thisLink.href.substring(0,7) != "mailto:" && thisLink.href !="https://pcu.ttcu.org/asp/USERS/Common/SelfEnrollment/SelfEnrollmentDisclosure.asp") {
				thisLink.target = "_blank";
				thisLink.href = "/Redirector.html?url=" + thisLink.href;
				if (showMessage == 1) {
					//thisLink.onclick = confirmNav;
				}
			}
		}
	}
	function confirmNav() {
		return confirm(theMessage);
	}
	var theLinks = document.links;
	var thisDomain = window.location.hostname;
	// Edit "theMessage" to your liking
	var theMessage = "You are now leaving the TTCU website.";
	// Change "showMessage" to 0 if you don't want the warning to pop up when navigating to external sites.
	var showMessage = 1;
	//addLoadEvent(updateLinks); 

