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


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

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

			return(alert("In order to serve our clients better, we have provided this link to a third party site. This site is not affiliated with Pacific Resource Credit Union in any way and is only provided as a courtesy."));

		});
	});

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

		});
	});
 	
 
});

