function forgottenpw() {
	
	var myProfileGeneralLabelStyle = 'width:225px;text-align:right;';
	
	fpPWDataForm = new Ext.FormPanel({
        labelWidth: 225,
		url: '/index.cfm?event=ajax.sendForgottenPw',
        layoutConfig: {labelSeparator: ''},
    	bodyStyle:'background-color:white;border:0px none;',
    	cls: 'popup',
    	style: 'margin-top: 10px;',				       
        items: [{
			html: '<p>' + getLanguageText('pages.forgottenpw.description') + '</p>',
			border: false
		},{
        	xtype: 'textfield',
            name: 'email',
            id: 'forgottenpwemail',
			hideLabel: true,
            allowBlank: false,
 			msgTarget: 'under',
 			blankText: getLanguageText('pages.register.error.email'),
            width:302,
            style:'margin:0px 0px 10px 10px;height:18px;display:block;',
			vtype: 'emailextended',
			msgTarget: 'qtip'
        },{
        	xtype: 'panel',
			border: false,
			cls: 'mt10',
			html: '<div class="ma-buttonbox clearfix"><a href="javascript:void(0);" onclick="fpPWDataForm.doAbort();" class="ma-button v1 wrp form-a"><span class="size">'+getLanguageText('defaults.cancel')+'</span></a>'
 				+ '<a href="javascript:void(0);" onclick="fpPWDataForm.doSubmit();" class="ma-button v1 form-b"><span class="size">'+getLanguageText('defaults.send')+'</span></a></div>'
		}],
		key: {
			key: [10, 13],
			fn: function(){
				fpPWDataForm.doSubmit();
			}
		},
		// Abort:
		doAbort: function(){			
			fpPWDataFormPopup.close();
			//window.location.href = '/index.cfm';
		},
		// Submit:
		doSubmit: function(){
			fpPWDataForm.validate();
			
			if (Ext.getCmp('forgottenpwemail').isValid()) {
				fpPWDataForm.getForm().submit({
					success: function(pForm, pAction){						
						Ext.Msg.alert(getLanguageText('defaults.hint'), pAction.result.message);
						fpPWDataFormPopup.close();
					},
					failure: function(pForm, pAction){
						Ext.Msg.alert(getLanguageText('defaults.error'), pAction.result.message)
					}
				
				})
			}
		},
		// Validierung:
		validate: function(){
			return true;
		},
		showError: function(fieldName, Msg){
			Ext.MessageBox.alert(getLanguageText('defaults.error'), Msg, function(){
				fpPWDataForm.getForm().findField(fieldName).focus();
			});
		}
    });
	
	fpPWDataFormPopup = new Ext.Window({
    	id:'fpPWDataFormPopup',
    	resizable:false,
    	closable:false,
        closeAction:'hide',
        plain:false,
        floating:true,
        modal:true,
        cls: 'popupmaster',
    	width:650,
        title: '<h2>'+getLanguageText('pages.forgottenpw.title')+'</h2>',
        items: [ fpPWDataForm ],
        shadow:true
        });
	
	fpPWDataFormPopup.show(); 	

}


