    $(function (){
        $('a.ajax').click(function() {
            var url = this.href;
            var dialog = $('<div style="display:hidden"></div>').appendTo('body');
            // load remote content
            dialog.load(
                url, 
                null,
                function (responseText, textStatus, XMLHttpRequest) {
					dialog.dialog({
						height: 400,
						width: 600,
						modal: true
					});
					
                }
            );
            //prevent the browser to follow the link
            return false;
        });
    });
