
function forgotPassword(){
    Ext.QuickTips.init();

    var popup = new Ext.Window({
        width: 320,
        height: 120,
        layout : 'fit',
        title: textStore['resetPasswordRequestWindow'],
        border : false,
        modal : true,
        items:[
        new Ext.form.Panel({
            id : 'resetPasswordForm',
            frame : true,
            bodyStyle: 'padding: 10px 5px 5px 5px;',
            items:[
            new Ext.form.TextField({
                fieldLabel: textStore['email'],
                labelAlign : 'right',
                labelWidth : 90,
                name : 'login',
                vtype:'email',
                width : 280,
                allowBlank:false
            })
            ]
        })
        ],
        buttons:[{
            text : textStore['resetPassword'],
            handler: function(){
                var form = Ext.ComponentMgr.get('resetPasswordForm').getForm();
                form.submit({
                    url : '/elms/en/requestResetPassword',
                    success: function(){
                        Ext.Msg.alert(textStore['resetPassword'],
                            textStore['requestResetPasswordSuccess'],
                            function(){
                                popup.close();
                            });
                    },
                    failure: function(){
                        Ext.Msg.alert(textStore['warning'],textStore['emailForamtError']);
                    }
                });
            }
        },
        {
            text:textStore['cancel'],
            handler: function(){
                popup.close();
            }
        }]
    });

    popup.show();
}

