function emailVerificar(strEmail)
{
    var objExclude = /[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
    var objCheck = /@[\w\-]+\./;
    var objCheckEnd = /\.[a-zA-Z]{2,3}$/;
    
    if(((strEmail.search(objExclude) != -1) || (strEmail.search(objCheck)) == -1) || (strEmail.search(objCheckEnd) == -1))
        return false;
    else
        return true;
}

function preenchimentoVerificar()
{
    if(document.frmAgenda.txtNome.value.length > 0)
    {
        if(document.frmAgenda.txtEmail.value.length > 0)
        {
            if(emailVerificar(document.frmAgenda.txtEmail.value))
            {
                if(document.frmAgenda.Cidade.value.length > 0)
                {
                    if(document.frmAgenda.Estado.value.length > 0)
                    {
                        if(document.frmAgenda.tema_evento.value.length > 0)
                        {
                            if(document.frmAgenda.data_horario.value.length > 0)
                            {
                                return true;
                            }
                            else
                            {
                                alert("Obrigatório o preenchimento da Data e/ou horários do evento.");
                                document.frmAgenda.data_horario.focus();
                                return false;
                            }
                        }
                        else
                        {
                            alert("Obrigatório o preenchimento do Nome ou tema do evento.");
                            document.frmAgenda.tema_evento.focus();
                            return false;
                        }
                    }
                    else
                    {
                        alert("Obrigatório o preenchimento do Estado.");
                        document.frmAgenda.Estado.focus();
                        return false;
                    }
                }
                else
                {
                    alert("Obrigatório o preenchimento da Cidade.");
                    document.frmAgenda.Cidade.focus();
                    return false;
                }
            }
            else
            {
                alert("Preencha corretamente seu E-mail.");
                document.frmAgenda.txtEmail.focus();
                return false;
            }
        }
        else
        {
            alert("Obrigatório o preenchimento do E-mail.");
            document.frmAgenda.txtEmail.focus();
            return false;
        }
    }
    else
    {
        alert("Obrigatório o preenchimento do Nome.");
        document.frmAgenda.txtNome.focus();
        return false;
    }
}