function Contato()
{
	var FormContato = $("#frmContato");
	
	// verifica se existe o formulario frmIndique
	if ($(FormContato).length > 0)
	{	
		$(FormContato).validate({

			submitHandler: function() 
		   {
			   var Conteudo = $(FormContato).serialize();
			   EnviarContato(Conteudo);
		   },		
			errorPlacement: function(error, element) 
			{
				error.appendTo( $("#erro" + element.attr("id")) );
			},	
			errorClass:"erro",
			errorElement:"span",
			rules:
			{
				txtNome: 
				{
					required: true
				},
				txtEmail:
				{
					required: true,
					email: true
				},
				txaMensagem:
				{
					required: true
				}
			},
			messages:
			{
				txtNome: 
				{
					required: "Nome é obrigatório <br/>"
				},
				txtEmail: 
				{
					required: "Email é obrigatório<br/>",
					email: "E-mail inválido<br/>"
				},
				txaMensagem: 
				{
					required: "Mensagem é obrigatório<br/>"
				}
			}
	   	});
	}//Fim se formulario pf existe

	function EnviarContato(Conteudo)
	{
		$('.alerta').html('');
		$.ajax(
		{
			type: "POST",
			data: Conteudo,
			url: "acao/Contato.php",
			success: function(retorno)
		   {
			   $('.alerta').html(retorno);
			   $("#frmContato")[0].reset();
		   }
		});       
	}
}