Ext.onReady(function() { var error = ''; var altura = 160; var exibeMsgErro = true; if(error != '') { altura = 180; exibeMsgErro = false } Ext.BLANK_IMAGE_URL = './images/s.gif'; Ext.QuickTips.init(); var login = new Ext.FormPanel({ id : 'idFrmLogin', formId : 'frmLogin', iconCls : 'lock', labelWidth : 65, padding: 10, url : 'j_security_check', frame : true, title : 'Login [SBE]', defaultType : 'textfield', monitorValid : true, items : [{ id: 'j_username', fieldLabel : 'Usuário', name : 'j_username', allowBlank : false, labelSeparator: '', width: 170, blankText : 'Digite o login do usuário !' }, { fieldLabel : 'Senha', name : 'j_password', id: 'j_password', inputType : 'password', allowBlank : false, labelSeparator: '', width: 170, enableKeyEvents : true, blankText : 'Digite a senha do usuário !' }, { xtype: 'box', hidden: exibeMsgErro, html: '