function checkFormContact() {
    var msg = false;
    var txt = "H&aacute; n&atilde; preenchidos";
    var el = null;


    if(msg==false && Ext.getDom('nome').value=="") {
        txt = "O preenchimento do campo \"Nome\" &eacute; obrigat&oacute;rio.";
        msg = true;
        if(el==null) el = Ext.getDom('nome');
    }

    if(msg==false && Ext.getDom('tel-contato').value=="") {
        txt = "O preenchimento do campo \"Telefone de Contato\" &eacute; obrigat&oacute;rio.";
        msg = true;
        if(el==null) el = Ext.getDom('tel-contato');
    }

    if(msg==false && Ext.getDom('email').value=="") {
        txt = "O preenchimento do campo \"E-mail\" &eacute; obrigat&oacute;rio.";
        msg = true;
        if(el==null) el = Ext.getDom('email');
    }

    if(msg==false && (Ext.getDom('data-nascimento0').value=="" || Ext.getDom('data-nascimento1').value=="" || Ext.getDom('data-nascimento2').value=="")) {
        txt = "Preencha corretamente o campo \"Data de Nascimento\".";
        msg = true;
        if(el==null) el = Ext.getDom('data-nascimento0');
    }

    if(msg==false && Ext.getDom('produto-desejado').value=="") {
        txt = "O preenchimento do campo \"Produto Desejado\" &eacute; obrigat&oacute;rio.";
        msg = true;
        if(el==null) el = Ext.getDom('produto-desejado');
    }

    if(msg) {
        el.focus();
        messageFailureTransaction(txt);
        return false;
    }

    return true;
}

// main function
Ext.onReady(function() {
    Ext.QuickTips.init();


}, this, true);
