function rate_publication(id, score)
{
    if (score == "")
    {
        return;
    }

    document.location.href = ROOT+'/publication.php?action=rate&id='+id+'&score='+score;
}

function login_form(theform)
{
    if(theform.username.value == 'Логин')
    {
        alert('Вы не ввели информацию для входа!');
        return false;
    }

    return true;
}

function insert_user(user_name)
{
    content = document.getElementById('comment').content;
    content.value += user_name+' ';
}