<!--
	function fn_EnviaOrcamento(theForm) {
		if (!validaitem(theForm.tx_Nome,'s','4','150','Nome')){return (false);}
		if (!validaitem(theForm.tx_Email,'s','5','200','E-mail')){return (false);}
		if (!splitemail(theForm.tx_Email)){return (false);}	
	
		theForm.submit();
	}

	function fn_EnviaOrcamentoEmpresa(theForm) {
		if (!validaitem(theForm.tx_Nome,'s','4','150','Razão Social')){return (false);}
		if (!validaitem(theForm.tx_Email,'s','5','200','E-mail')){return (false);}
		if (!splitemail(theForm.tx_Email)){return (false);}	
	
		theForm.submit();
	}

	function fn_EnviaOrcamentoEquip(theForm) {
		if (!validaitem(theForm.tx_Nome,'s','4','150','Nome / Razão Social')){return (false);}
		if (!validaitem(theForm.tx_Email,'s','5','200','E-mail')){return (false);}
		if (!splitemail(theForm.tx_Email)){return (false);}	
	
		theForm.submit();
	}
	
	function setcnpj_cpf (input, evento) {
		if (document.getElementById("tp_Pessoa0").checked)
		{
			var tecla = (evento.keyCode ? evento.keyCode: evento.which ? evento.which : evento.charCode)
			if ((input.value.length >= 14) && (tecla != 8))
				return false;
			else
				return setcpf(input, evento);
		}
		else if (document.getElementById("tp_Pessoa1").checked)
			return setcnpj(input, evento);
	}

	function valida_CPF_CNPJ (input) {
		if (document.getElementById("tp_Pessoa0").checked)
			valida_CPF(input)
		else if (document.getElementById("tp_Pessoa1").checked)
			valida_CNPJ(input)
	}
//-->
