        $(function (){
                $('a.popupbox').click(function() {
                        var url = this.href;
                        var dialog = $('<div style="display:hidden"></div>').appendTo('body');
                        // load remote content
                        dialog.attr("title", this.title);
                        dialog.load(
                                url, 
                                {},
                                function (responseText, textStatus, XMLHttpRequest) {
                                        dialog.dialog({height: 480, width: 680, resizable: false  });
                                }
                        );
                        //prevent the browser to follow the link
                        return false;
                });
        });