jQuery(document).ready(function() {
    jQuery("a[rel=external]").click( function(e) {
	   confirmExit(jQuery(this).attr("href"));
	   e.preventDefault();
    });
});
function confirmExit(url) {
	var retString = "You are about to leave the website" + '\n\n' + "Are you sure you wish to do so?";
	var answer = confirm (retString);
	if (answer) {
		window.open(url, null,"");
	}
}