function checkform(){

var emailva, emailar, emailpt, emailln;
with(document.dados){
emailva = email.value;
emailar = emailva.indexOf('@',0);
emailpt = emailva.indexOf('.',emailar);
emailln = emailva.length;
if(nome.value == ""){
	alert("O campo NOME é obrigatório.");
	nome.focus();
	return false;		
}
if(nome.value.length < 5){
	alert("Entre com seu NOME completo.");
	nome.focus();
	return false;		
}
if(nome.value.indexOf(' ',0)==-1){
	alert("Entre com seu NOME completo.");
	nome.focus();
	return false;
}
else{
	if((nome.value.indexOf(' ',0)+2) >= (nome.value.length)){
	alert("Entre com seu NOME completo.");
	nome.focus();
	return false;
	}
}
if(emailva == ""){
	alert("O campo EMAIL é obrigatório.");
	email.focus();
	return false;
}
if((emailln<12) || (emailar==-1) || (emailpt==-1) || (emailar<1) || (emailpt-emailar<2) || (emailln-emailpt<3)){
	alert("Entre com um EMAIL válido.");
	email.focus();
	return false;
}
}	
return true;
}