function showProfile(obj)
{
    var userId = $(obj).attr('class').substr($(obj).attr('class').indexOf(' ') + 1);
	var id = '#profile_' + $(obj).attr('class').substr($(obj).attr('class').indexOf(' ') + 1);
	var options = {type: 'GET', dataType: 'html', url: '/users/show-profile/' + userId + '/', success: function (response) {
		$('body').append(response);
		$(id).openPopup();
	}};
	showPopup('profile_window', options, id, obj.attr('title'));
}
