	function fctContato_Enviar() {	
		if (document.getElementById('nome').value == "") {
			alert('Por favor, preencha corretamente o campo Nome.');
			document.getElementById('nome').focus();
			return;
		};
		if (document.getElementById('email').value == "") {
			alert('Por favor, preencha corretamente o campo E-Mail.');
			document.getElementById('email').focus();
			return;
		};
		if (document.getElementById('assunto').value == "") {
			alert('Por favor, preencha corretamente o campo de Assunto da Mensagem.');
			document.getElementById('assunto').focus();
			return;
		};
	if (document.getElementById('mensagem').value == "") {
			alert('Por favor, preencha corretamente o campo da Mensagem.');
			document.getElementById('mensagem').focus();
			return;
		};
	
		var objeAjax = new Ajax();
		objeAjax.oParametros.Adicionar(new Parametro("Nome",document.getElementById('nome').value));
		objeAjax.oParametros.Adicionar(new Parametro("Email",document.getElementById('email').value));
		objeAjax.oParametros.Adicionar(new Parametro("Assunto",document.getElementById('assunto').value));
		objeAjax.oParametros.Adicionar(new Parametro("Mensagem",document.getElementById('mensagem').value));
		objeAjax.oParametros.Adicionar(new Parametro("intePassos",1));
		objeAjax.metodo = "POST";
		objeAjax.callBack = fctContato_Enviar_CallBack;
		objeAjax.url = "http_request/web_enviar_dados.asp";
		objeAjax.Enviar();
	}
	
	function fctContato_Enviar_CallBack(objeAjax) {
		if (objeAjax.VerificarStatus() != 4)
		return;
		
//		alert(objeAjax.getText);
		
		if (objeAjax.getText == 'true') {
			fctContato_Limpar();	
			alert('Mensagem enviada com sucesso.');			
		} else {
			alert('Não foi possivel enviar sua mensagem.\nTente novamente mais tarde.')
		};
	}

	function fctContato_Limpar() {
		document.getElementById('nome').value='';
		document.getElementById('email').value='';
		document.getElementById('assunto').value='';
		document.getElementById('mensagem').value='';
		document.getElementById('mensagem').innerText='';
	}
	
	function getPageTop() {
		window.scrollTo(0,0);
	};
	
	function goHistoryBack() {
		history.go(-1);
	};
	
	function ChangeFontSize(inteSize, varcObj) {
		var obj = document.getElementById(varcObj);
		
		switch(inteSize) {
			case 0:
				obj.style.fontSize = '11px';
			break;
			case 1:
				obj.style.fontSize = '12px';
			break;
			case 2:
				obj.style.fontSize = '13px';
			break;
		};
	};
	
	function ChangeFontColor(inteCor, varcObj) {
		var obj = document.getElementById(varcObj);
		
		switch(inteCor) {
			case 1:
				obj.style.color = '#8B8B8B';
			break;
			case 2:
				obj.style.color = '#000000';
			break;
		};
	};
	
	var strTitulo, strTexto, strImagens
	function popupPrintWindow(varcTitulo, objTexto, objImagens) {
		strTitulo = varcTitulo;
		strTexto = objTexto;
		strImagens = objImagens;
		var win = window.open('VImpressao.html', 'popupPrintWindow',
    'scrollbars=1, status=yes, width=' + 650 + ', height=' + 500 + ', ' +
    'left=' + (screen.width-500)/2 + ', top=' + (screen.height-500)/2);
	};
	
	function setMyData(objWindow) {
		try {
			objWindow.document.getElementById('Titulo').innerHTML = strTitulo;
		} catch(e) { return false };
		try {
			if (strTexto != '') {
				objWindow.document.getElementById('Texto').innerHTML = document.getElementById(strTexto).innerHTML;
			};
		} catch(e) { return false };
		try {
			if (strImagens != '') {
				objWindow.document.getElementById('Imagens').innerHTML = document.getElementById(strImagens).innerHTML;
			} else {
				objWindow.document.getElementById('Imagens').style.display = 'none';
			}
		} catch(e) { return false };
		objWindow.focus();
		return true;
	}
	
	function fctCopyright() {
		alert('Prezado leitor,\n\nNão é permitida a utilização desse conteúdo para fins comerciais e/ou profissionais. Para comprar ou obter autorização de uso desse conteúdo, entre em contato com a Difiltro pelo telefone (27) 3235-6888 ou pelo e-mail: difiltro@difiltro.com.br')
		return false
	}
	
	function fctCopyright2() {
	var ctrl=window.event.ctrlKey;
	var tecla=window.event.keyCode;
	if (ctrl && tecla==67){
	alert('Prezado leitor,\n\nNão é permitida a utilização desse conteúdo para fins comerciais e/ou profissionais. Para comprar ou obter autorização de uso desse conteúdo, entre em contato com a Difiltro pelo telefone (27) 3235-6888 ou pelo e-mail: difiltro@difiltro.com.br')
	event.keyCode=0; event.returnValue=false;
	}
	}