$(document).ready(function() { 
	var options = {
		beforeSubmit:  showRequest,
		success:       showResponse
	}; 

	$('#formVote').submit(function() {
		$(this).ajaxSubmit(options);
		return false; 
	}); 
}); 
 
function showRequest(formData, jqForm, options)
{
	return true; 
} 
 
function showResponse(responseText, statusText, xhr, $form)
{ 
	$('.vote form').hide();
	$('.vote p').html('Voto computado!');
} 

