function valContato(){
	if(valCampo('txtNome',3,'o nome !')==false) return false;		
	if(valMail('txtEmail')==false) return false;
	if(valCampo('txtAssunto',5,'o assunto !')==false) return false;			
	if(valCampo('txtMensagem',10,'a sua mensagem!')==false) return false;			
	eLementos('frmContato').action='ContatoResp.asp';
	return true;
}				


function valCadastro(){
	if(valCampo('txtNome',3,'o nome !')==false) return false;		
	if(valMail('txtEmail')==false) return false;
	if(valMail('txtEmail2')==false) return false;
	if(eLementos('txtEmail').value!=eLementos('txtEmail2').value){
			alert('O e-mail e a confirmação de e-mail devem ser iguais.')
			eLementos('txtEmail').focus();
			return false;
		}
	if(valSelect('txtEstado','','o estado!')==false) return false;
	eLementos('frmCadastro').action='ContatoResp.asp';
	return true;
}		

function valIndique(){
	if(valCampo('txtNome',3,'o seu nome !')==false) return false;		
	if(valMail('txtEmail')==false) return false;
	if(valCampo('txtNome2',3,'o nome do seu amigo !')==false) return false;		
	if(valMail('txtEmail2')==false) return false;
	eLementos('frmIndique').action='ContatoResp.asp';
	return true;
}	
