var message			= "Please be advised that you are leaving Georgia Heritage Federal Credit Union's website. This link is provided as a courtesy.  Georgia Heritage Federal Credit Union does not endorse or control the content of third party websites.";

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

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;
			}

		});
	});
 	
 
});
