$.fn.externalize = function(){
    this.each(function(){
        var $this = $(this);
        $this.bind('click', function(event){
            event.preventDefault();
            var location = $this.attr('href');
            window.open(location, 'newwin', "scrollbars=yes, toolbar=yes");
        });
    });
    return this;
};

$(function(){
    $('a[rel="external"]').externalize();
});