$(function(){
$("#allhits").html("0");
$("#hits1").html("0");
$("#hits2").html("0");
$("#hits3").html("0");
$("#hits4").html("0");
$("#hits5").html("0");
$("#hits6").html("0");
});
function onHits(id,vote){
$.ajax({
type: "GET",
dataType: "json",
url: "/e/vote.php?id=" + id + "&vote=" + vote + "&t=" + (new Date()).valueOf(),
data: {},
complete :function(){
},
success: function(data){
if(data.result){
$("#allhits").html(parseInt($("#allhits").html()) + 1);
$("#hits" + vote).html(parseInt($("#hits" + vote).html()) + 1);
}
else{
alert(data.msg);
}
}
});
}