/*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. Our website contains links to other internet sites that may be of interest to your children. Although our intent is to provide links to other quality sites, we cannot guarantee the safety and privacy of information provided to these linked sites. We are not responsible for the privacy, security, and use practices of nonaffiliated third parties to which our website may link. Parents should review the privacy policies of these sites closely before allowing children to provide any personally identifiable information. By clicking ok I also acknowledge that I am 14 years of age or older.";

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

		});
	});
 	
 
});

