function enviaAjax(id_formulario, url_post, div_carregando, div_retorno) 
{
	var formdata = $("#"+id_formulario).serialize();
	$.ajax({
	  type: "POST",
	  url: url_post,
	  data: formdata,
	  context: document.body,
	  beforeSend: function()
	  {
		$('#'+div_carregando).show();
	  },
	  success: function(txt)
	  {
		$('#'+div_retorno).html(txt)
		$('#'+div_carregando).hide();
	  }
	});
}
