function spa_render_profiles_panel($formid)
{
    ?>
	<div class="clearboth"></div>

	<div class="wrap sfatag">
		<?php 
    spa_render_sidemenu();
    ?>
		<div id='sfmsgspot'></div>
		<div id="sfmaincontainer">
			<?php 
    spa_render_profiles_container($formid);
    ?>
		</div>
			<div class="clearboth"></div>
	</div>
<?php 
}
}
include_once SF_PLUGIN_DIR . '/admin/panel-profiles/spa-profiles-display.php';
include_once SF_PLUGIN_DIR . '/admin/panel-profiles/support/spa-profiles-prepare.php';
include_once SF_PLUGIN_DIR . '/admin/panel-profiles/support/spa-profiles-save.php';
include_once SF_PLUGIN_DIR . '/admin/library/spa-tab-support.php';
global $adminhelpfile;
$adminhelpfile = 'admin-profiles';
# --------------------------------------------------------------------
# ----------------------------------
# Check Whether User Can Manage Profiles
if (!sp_current_user_can('SPF Manage Profiles')) {
    spa_etext('Access denied - you do not have permission');
    die;
}
if (isset($_GET['loadform'])) {
    spa_render_profiles_container($_GET['loadform']);
    die;
}
if (isset($_GET['saveform'])) {
    switch ($_GET['saveform']) {
        case 'global':
            echo spa_save_global_data();
            break;
        case 'tabs-menus':
            echo spa_save_tabs_menus_data();
            break;
        case 'options':
            echo spa_save_options_data();
            break;
        case 'avatars':
            echo spa_save_avatars_data();