var obj,obj_pv,obj_v;
function vote(url,id,user,key) {
    var point = 'normal';
    obj = 'point_' + id;
    obj_pv = 'point-vote_' + id;
    obj_v = 'vote_' + id;
    if (document.getElementById(obj_v).firstChild.nodeValue=='') {
        return;
    }
    if (key>=1) {
        point = 'good';
    }
    var query = '&vote=' + id + '&estimation=' + point + '&user=' + user + '&dummy'+ '#review_' + id;
    url += query;
    sendRequest(voted,'','GET',url,false,true);
}
function voted(oj) {
    var point = oj.responseText;
    if (point != "") {
        document.getElementById(obj).firstChild.nodeValue = point;
        document.getElementById(obj_v).firstChild.nodeValue = '';
        document.getElementById(obj_pv).className = 'point-vote-off';
    }
}