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


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

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

			return(alert("You will need to leave the Community Bank of Raymore website, since the site you've chosen is independent from Community Bank of Raymore. Community Bank of Raymore does not control these sites and does not guarantee the accuracy, privacy, completeness, efficacy, or timeliness of the information obtained therein. You may also call Community Bank of Raymore at (816) 322-2100."));

		});
	});

	confirmLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm("You will need to leave the Community Bank of Raymore website, since the site you've chosen is independent from Community Bank of Raymore. Community Bank of Raymore does not control these sites and does not guarantee the accuracy, privacy, completeness, efficacy, or timeliness of the information obtained therein. You may also call Community Bank of Raymore at (816) 322-2100.") ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});
 	
 
});
