
function make_news_vote(id){
	
 __$.ajax({
  url: "noticia.php?ajx=1&act=vote&id="+id,
  cache: false,
  beforeSend: function (req){

	show_loader(); 
	
	return req;
  },
  complete: function (req,status){

	return req;
  },  
  success: function(html){
	
	__$('body').append("<div id='ajx_resp' style='display:none'></div>");
	__$("#ajx_resp").html(html);
	
	if (__$("#ajx_vote_error").html()){
		alert (__$("#ajx_vote_error").html());
	}else{
		__$(".v"+id).html(__$("#ajx_vote_result").html());
	}
	
		
	
	hide_loader();
	__$('#ajx_resp').remove();
	
	
	
  }
  });	

}



function show_loader(){
	
	__$('body').append("<div id='ajax_loader_wait'></div>");

}

function hide_loader(){
	__$('#ajax_loader_wait').remove();
}

