var Contato = {
	enviar:function(form) {
		if ($Form.validate(form) != false) {
			$j.alert({
				type: 'loading', hide:false, width:200, html: 'Enviando contato, aguarde...'
			});
			
			$j.ajax({
				url: 'acoes.php?contatoGuia', type: 'post', data: $j(form).serialize(),
				success: function(response) { //alert(response);
					if (response == '' || response) {
						$j(form)[0].reset();
						
						$j.alert({
							html: 'Contato enviado com sucesso! Aguarde retorno de nossa equipe.', width:400
						});
					}
				}
			});
		}
		
		return false;
	}
}

var AlteracaoCadastro = {
	enviar:function(form) {
		if ($Form.validate(form) != false) {
			$j.alert({
				type: 'loading', hide:false, width:200, html: 'Enviando contato, aguarde...'
			});
			
			$j.ajax({
				url: 'acoes.php?alterarDados', type: 'post', data: $j(form).serialize(),
				success: function(response) { //alert(response);
					if (response == '' || response) {
						$j(form)[0].reset();
						
						$j.alert({
							html: 'Pedido de alteração enviado com sucesso! Aguarde retorno de nossa equipe.', width:450
						});
					}
				}
			});
		}
		
		return false;
	}
}

var Cadastro = {
	enviar:function(form) {
		if ($Form.validate(form) != false) {
			$j.alert({
				type: 'loading', hide:false, width:200, html: 'Enviando cadastro, aguarde...'
			});
			
			$j.ajax({
				url: 'acoes.php?cadastroGuia', type: 'post', data: $j(form).serialize(),
				success: function(response) { //alert(response);
					if (response == '' || response) {
						$j(form)[0].reset();
						
						$j.alert({
							html: 'Cadastro enviado com sucesso! Aguarde avaliação de nossa equipe.', width:400
						});
					}
				}
			});
		}
		
		return false;
	}
}
