function vote_plus(id)
{
    $.post("/vote.php",{type: "plus", id: id}, updatevote);
}

function vote_minus(id)
{
    $.post("/vote.php",{type: "minus", id: id}, updatevote);
}

function updatevote(data)
{
    var id = $("response id",data).text();
    var votes = $("response votes",data).text();
    var rating = $("response rating",data).text();
    $(".rating_"+id).html(rating);
    $(".votes_"+id).html(votes);
}