// validacao do formulario da area CONTATO
function validaform(obj)
{
	if (isBlank(obj.tx_nome.value))
	{
		alert('O campo NOME deve ser preenchido.');
		obj.tx_nome.focus();
		return false;
	}
	
	if (isBlank(obj.tx_endereco.value))
	{
		alert('O campo ENDEREÇO deve ser preenchido.');
		obj.tx_endereco.focus();
		return false;
	}
	
	if (isBlank(obj.tx_cep.value))
	{
		alert('O campo CEP deve ser preenchido.');
		obj.tx_cep.focus();
		return false;
	}
	
	if (isBlank(obj.tx_cidade.value))
	{
		alert('O campo CIDADE deve ser preenchido.');
		obj.tx_cidade.focus();
		return false;
	}
	
	if (isBlank(obj.tx_estado.value))
	{
		alert('O campo ESTADO deve ser preenchido.');
		obj.tx_estado.focus();
		return false;
	}
	
	if (isBlank(obj.tx_pais.value))
	{
		alert('O campo PAÍS deve ser preenchido.');
		obj.tx_pais.focus();
		return false;
	}
	
	if (isBlank(obj.tx_ddd.value))
	{
		alert('O campo DDD deve ser preenchido.');
		obj.tx_ddd.focus();
		return false;
	}
	
	if (isBlank(obj.tx_telefone.value))
	{
		alert('O campo TELEFONE deve ser preenchido.');
		obj.tx_telefone.focus();
		return false;
	}
	
	if (isBlank(obj.tx_email.value))
	{
		alert('O campo E-MAIL deve ser preenchido.');
		obj.tx_email.focus();
		return false;
	}
	
	if (isBlank(obj.tx_assunto.value))
	{
		alert('O campo ASSUNTO deve ser preenchido.');
		obj.tx_assunto.focus();
		return false;
	}		
	
	if (isBlank(obj.tx_mensagem.value))
	{
		alert('O campo MENSAGEM deve ser preenchido.');
		obj.tx_mensagem.focus();
		return false;
	}
	
	if (isBlank(obj.tx_motores.value) || obj.tx_motores.value == '0')
	{
		alert('O campo xxxxxxx deve ser preenchido.');
		obj.tx_motores.focus();
		return false;
	}						
	
	return true;
}


// validacao do formulario da area CONTATO
function validaform2(obj)
{
	
	
	if (isBlank(obj.tx_motores.value) || obj.tx_motores.value == '0')
	{
		alert('Selecione o motor.');
		obj.tx_motores.focus();
		return false;
	}						
	
	return true;
}

<!--

// js para o 'consulta/index.php', aonde ele direciona a escolha no select

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+busca.selecione.value+"'");
}

//-->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
