/*var first = true;
window.addEvent('domready', function() {

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

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

			return(alert("Please be advised that you are leaving Hyperion Bank's website. This link is provided as a courtesy.  Hyperion Bank does not endorse or control the content of third party websites."));

		});
	});

	confirmLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if(first == true){
				first = false;
				if( confirm("Please be advised that you are leaving Hyperion Bank's website. This link is provided as a courtesy.  Hyperion Bank does not endorse or control the content of third party websites.") ) {
					return true;
				} else {
					event.stop();
					first = true;
					return false;
				}
			}

		});
	});
 	
 
}); */



var message			= "Please be advised that you are leaving Hyperion Bank's website. This link is provided as a courtesy.  Hyperion Bank 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;
			}

		});
	});
 	
 
});
