Ext.onReady(function(){var A=Ext.form;var C="/login.php";var D="Login";function B(F){if(F.findField("userId").getValue()==""){F.findField("userId").focus();return false}if(F.findField("password").getValue()==""){F.findField("password").focus();
return false}return true}var E=new A.FormPanel({labelWidth:65,frame:false,bodyStyle:"background:#A5C4E1;padding:6px 0px 6px 2px",border:true,onSubmit:Ext.emptyFn,labelAlign:"right",labelSeparator:" ",width:159,url:C,items:[{xtype:"textfield",id:"userIdField",name:"userId",fieldLabel:"User Name",maskRe:/[a-zA-Z0-9\.\_\-]/,minLength:5,maxLength:20,width:75},{xtype:"textfield",name:"password",fieldLabel:"Password",maskRe:/[a-zA-Z0-9]/,inputType:"password",minLength:5,maxLength:12,width:75},{xtype:"hidden",name:"timezoneOffset",value:(new Date()).getTimezoneOffset()},{xtype:"button",text:D,style:"margin-left:97px",handler:function(){if(B(E.getForm())){E.getForm().getEl().dom.action=E.url;
E.getForm().getEl().dom.submit()}}}]});E.render("loginForm")});