$(document).ready(function() ( // Creating custom :external selector $.expr[1 :1 1.external = function(obj)( return !obj.href.match(rmailto‘:/) && (obj.hostname != location.hostname); 1; // Add 'external' CSS class to all external links // $(1 a:external').addClass(texternals); // $('.external').click(function() ( var link = $(this).attr('href'); $(1 <div>You are now leaving the Department of Homeland Security webpage,<br />and headed towards : '+(link)+' <br /><br I> Are you sure you want to proceed?</div>')•dialog({ title: "EXTERNAL LINK", modal : true, width : 450, overlay: I backgroundColor: '4000', opacity: 0.5 1, buttons: I 'Okay': function() $(this).dialog(scloses).remove(); window.open(link); 'Cancel': function() ( $(this).dialog('close').remove(1; return false; 1); return false; I); I); EFTA01171864