$APPLICATION->ShowHeadStrings();
$APPLICATION->ShowHeadScripts();
if ($_REQUEST['SEF_APPLICATION_CUR_PAGE_URL']
&& $_REQUEST['AUTH_FORM'] == 'Y'
&& $_REQUEST['TYPE'] == 'AUTH') {
global $USER;
if ($USER->IsAuthorized()) {
LocalRedirect($_REQUEST['SEF_APPLICATION_CUR_PAGE_URL']);
}
}