var message = "Please be advised you are leaving MCT Credit Union’s website. This link is provided as a courtesy. MCT does not endorse or control the content of third party websites. The products and services offered on 3rd party sites are not products of MCT. Linking to a web site does not consider endorsement by MCT, or any of its employees, of the sponsors or the products presented on the site. Other websites that you may link to from the Credit Union’s site are not bound by MCT’s privacy/security policy.";
var warnMessage	= "You are leaving MCT Credit Union’s website.";

function warn() {
	return(alert(warnMessage));
}

window.addEvent('domready', function() {


	var alertLinks 		= $$( "a.warn" );
	var confirmLinks 	= $$( "a.confirm" );
	

	alertLinks.each(function(element, i) {
		element.addEvent('click', warn);
	});

	confirmLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm(message) ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});
 	
 
});

