function validar() {

	var Elemento;
	var i;
	var Obj=document.DADOS;

	Elemento = Obj.frm_nome;
	if (isEmpty(Elemento.value)) {
		Elemento.focus();
		alert("Por favor preencha o campo NOME");
		return false;		
	}

	Elemento = Obj.frm_email;
    if (isEmail(Elemento.value)) {
		// OK
	} else {
		Elemento.focus();
		alert("O campo EMAIL não está correcto!\nPor favor corriga.");
		return false;
	}			

	Elemento = Obj.frm_mensagem;
	if (isEmpty(Elemento.value)) {
		Elemento.focus();
		alert("Por favor preencha o campo MENSAGEM");
		return false;		
	}

	return true;

}
