var FR={UI:{translations:[]},submitForm:function(){FR.win.el.mask("Please wait...");FR.recoveryForm.getForm().submit({url:submitURL,failure:function(frm,act){FR.win.el.unmask();var msg=act.result?act.result.msg:FR.T("A problem was encountered while trying to submit the form: ")+act.response.responseText;new Ext.ux.prompt({text:msg})},success:function(frm,act){FR.win.el.unmask();new Ext.ux.prompt({text:act.result.msg,callback:function(){document.location.href=URLRoot}})}})}};Ext.onReady(function(){if(Settings.ui_bg){Ext.getBody().addClass("fr-transparent-login")}Ext.fly("loadMsg").fadeOut();FR.recoveryForm=new Ext.form.FormPanel({hideLabels:true,items:[{id:"usr",xtype:"textfield",emptyText:"E-mail address",name:"email",width:"100%",cls:"loginFormField"}]});var canvasSize=Ext.getBody().getViewSize();var windowWidth=380;if(canvasSize.width<windowWidth){windowWidth=canvasSize.width-20}FR.win=new Ext.Window({cls:"login",closable:false,draggable:false,title:"Password Reset",width:windowWidth,bodyStyle:"padding:var(--pad) 0",items:[FR.recoveryForm],buttons:[{text:"Sign in",cls:"fr-btn-link",handler:function(){document.location.href=URLRoot}},"->",{text:"Submit",cls:"fr-btn-primary",handler:FR.submitForm}]});FR.win.show().anchorTo(Ext.get("theBODY"),"c-c");new Ext.KeyMap("usr",{key:Ext.EventObject.ENTER,fn:FR.submitForm})});