function requisitarEnvioMensagem() {

	modo_debugger_ajax 	= false;
	_remetente_nome 	= document.getElementById('remetente_nome').value;;
	_remetente_email 	= document.getElementById('remetente_email').value;
	_mensagem			= document.getElementById('mensagem').value;
	_destinatario_email	= document.getElementById('destinatario_email').value;
	if(_remetente_nome == '') {
		alert('Preencha o seu nome.');
		return false;
	}
	if(_mensagem == '') {
		alert('Escreva alguma mensagem.');
		return false;
	}
	// ESCONDER FORMULÁRIO:
	document.getElementById('formulario_contato').style.display = 'none';
	document.getElementById('enviando').style.display 			= 'block';
	
	// REQUISITAR AJAX:
	if(document.getElementById('copia_g3')) {
		_copia_g3 = document.getElementById('copia_g3').value;
	} else {
		_copia_g3 = '0';
	}
	url = RAIZ_SITE + "biblioteca/envio_email.php";
	parametros = "acao=enviar_email&remetente_nome=" + _remetente_nome + "&remetente_email=" + _remetente_email + '&mensagem=' + _mensagem + '&destinatario_email=' + _destinatario_email + '&copia_g3=' + _copia_g3;
	objetoRequisicaoDados = new requisicaoDados(url, parametros, resultadoEnvioMensagem, cancelarAjaxContato, 'preloader_contato', '');
}

function cancelarAjaxContato() {
	document.getElementById('formulario_contato').style.display = 'true';
	document.getElementById('enviando').style.display 			= 'none';
	cancelarAjax();
}

function resultadoEnvioMensagem() {
	if(resultado_envio_email == 'sucesso') {
		document.getElementById('enviado_com_sucesso').style.display = 'block';
	} else {
		alert('Houve algum erro ao tentar enviar a sua mensagem. \nTente novamente mais tarde.');
		document.getElementById('formulario_contato').style.display = 'block';
	}
	document.getElementById('enviando').style.display 			= 'none';
}
