Ext.onReady(function(){
	Ext.QuickTips.init(); var q = Ext.QuickTips.getQuickTip(); q.showDelay = 20; q.trackMouse = true; q.hideDelay=0;  //q.interceptTitles=true;
	Ext.form.Field.prototype.msgTarget = 'side';

	var login_form = new Ext.FormPanel({ id:'loginFormSb', renderTo:'jl_login_sb_form', frame:false, bodyBorder:false, border:false, bodyStyle:'padding:5px 0 5px 23px; background:transparent', 
			labelWidth: 65, width: 250, defaults: {width: 180, style:'margin:0 0 5px 0;'}, defaultType: 'textfield', waitMsgTarget: true, 
			url:'requests/login.php', 
		items: [
			{ hideLabel: true, emptyText:'Email', name: 'login', id:'login-sb', allowBlank:false, validationEvent:false },
			{ hideLabel: true, emptyText:'Password', name: 'password', id: 'password-sb', allowBlank:false, validationEvent:false, inputType: 'password', 
				listeners:{ specialkey:function(f,e){ if(e.getKey()==13) formSbSubmit(); }  } 
			}
		]
	});
});

function formSbSubmit(){
	Ext.getCmp('loginFormSb').getForm().submit({ waitMsg:'Logging in...', 
//		failure: function(){ Ext.getCmp('login').focus(true); }, 
		success: function(){ location.href='jl_logging.php'; }
	}); 
}