function voting (point,model ,model_id){	
	 $.getJSON("/votes/voting/"+model+"/"+model_id+"/"+point,{			
		}, function(result){			
			if (result.error != "") {
				alert(result.error);
			} else {
					$('#'+model+'_pos_points_'+model_id).html(" "+parseInt(result.pos_points));
					$('#'+model+'_neg_points_'+model_id).html(" "+Math.abs(parseInt(result.neg_points)));
					$('#'+model+'_points_'+model_id).html(" "+parseInt(result.points));
					
					if (point >0) {
						$('#'+model+'_arrows_'+model_id).children("div.dw_vote").addClass('dis');
						$('#'+model+'_arrows_'+model_id).children("div.up_vote").addClass('voted');
					} else {
						$('#'+model+'_arrows_'+model_id).children("div.dw_vote").addClass('voted');
						$('#'+model+'_arrows_'+model_id).children("div.up_vote").addClass('dis');
					}	
			}		   
	})
}