function removeProfession($uid, $params)
{
    $objResponse =& new xajaxResponse();
    $uid = intval($uid);
    $prof_id = intval($params['prof_id']);
    if ($uid != get_uid(false) || !get_uid(false) || $prof_id < 0) {
        return $objResponse;
    }
    $category = current(portfolio::getPortfolioCategory($prof_id));
    if ($category['is_work'] > 0) {
        // С работами раздел удалить нельзя!
        return $objResponse;
    }
    professions::removePortfChoise($uid, $prof_id);
    $objResponse->assign("professions_works_{$prof_id}", 'innerHTML', '');
    $objResponse->script("\$('profession_edit_popup').dispose(); ");
    return $objResponse;
}