var message			= "Please be advised that you are leaving The First State Bank's website. This link is provided as a courtesy.  The First State Bank does not endorse or control the content of third party websites.";
var message2			= "First State Bank reminds you that sending e-mail to this e-mail address is not necessarily secure against interception. If your information is very sensitive, or includes personal or confidential information, such as your account, ATM, check card or Social Security number, you should either send it to us using the secure-mail link that is available through our Internet Banking product or send it to us by postal mail";
function warn() {
	return(alert(message));
}

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


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

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

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

		});
	});
 
});

