function popIndique(){
	var MSGOBRIGATORIO = 'Campos em destaque devem ser obrigatoriamente preenchidos.';
	var MSGEMAIL = 'O campo {CAMPO} não contém um e-mail válido.';
	var MSGSUCESSO = 'Indicação enviada com sucesso!';
	var MSGERRO = 'Não foi possível enviar sua indicação, por favor tente mais tarde.';
	
	$('#frmIndique').validate(
		{
			submitHandler: function() 							
			{
			
				$.ajax({
					'url': 'acao/Indique.php',
					type: 'post',
					data: {
						'txtSeuNome': $('#txtSeuNome').val(), 
						'txtSeuEmail': $('#txtSeuEmail').val(),
						'txtNomeIndicada': $('#txtNomeIndicada').val(), 
						'txtEmailIndicada': $('#txtEmailIndicada').val(),
						'hdnProdutoID': $('#hdnProdutoID').val(),
						'hdnIdiomaID': $('#hdnIdiomaID').val()
					},
					error: function(){
						$('#erro').removeClass('msg-erro').addClass('msg-sucesso').empty().append(MSGERRO);
					},
					success: function(response){
					
						if(response == 'SUCESSO')
						{
							$(':input').attr('disabled', true);
							$('#erro').removeClass('msg-erro').addClass('msg-sucesso').empty().append(MSGSUCESSO);
						}
						else if(response == 'ERRO')
						{
							$('#erro').removeClass('msg-erro').addClass('msg-sucesso').empty().append(MSGERRO);
						}
					}
				});
			},
			ignore: '.campos',
			focusInvalid: true,
			errorClass: "erro",
			errorPlacement: function(error, element)	
			{
				$('#erro').removeClass('msg-sucesso').addClass('msg-erro').empty().append(error);
			},
			highlight: function(element, errorClass)
			{
				$(element).addClass('erro');
			},
			unhighlight: function(element, errorClass)
			{
				$(element).removeClass('erro');
			},
			rules: 
			{
				txtSeuNome: 
				{	
					required : true
				},
				txtSeuEmail: 
				{	
					required : true,
					email : true
				},
				txtNomeIndicada: 
				{	
					required : true
				},
				txtEmailIndicada: 
				{	
					required : true,
					email : true
				}		
			},
			messages:
			{
				txtSeuNome: 
				{	
					required : MSGOBRIGATORIO.replace( /{CAMPO}/, 'Seu Nome')
				},
				txtSeuEmail: 
				{	
					required : MSGOBRIGATORIO.replace( /{CAMPO}/, 'Seu E-mail'),
					email: MSGEMAIL.replace( /{CAMPO}/, 'Seu E-mail')
				},
				txtNomeIndicada: 
				{	
					required : MSGOBRIGATORIO.replace( /{CAMPO}/, 'Nome da Indicada')
				},
				txtEmailIndicada: 
				{	
					required : MSGOBRIGATORIO.replace( /{CAMPO}/, 'E-mail da Indicada'),
					email: MSGEMAIL.replace( /{CAMPO}/, 'E-mail da Indicada')
				}		
			}
		});
}
