function forgottenpw() {
	
	var myProfileGeneralLabelStyle = 'width:225px;text-align:right;';
	
	fpPWDataForm = new Ext.FormPanel({
        labelWidth: 150,
		url: '/index.cfm?event=ajax.sendForgottenPw',
        layoutConfig: {labelSeparator: ''},
    	bodyStyle:'background-color:transparent;border:0px none; padding:10px;',
    	style: 'margin-top: 10px;',				       
        items: [{
			html: '<p>' + getLanguageText('pages.forgottenpw.description') + '</p>',
			border: false
		},{
        	xtype: 'textfield',
        	fieldLabel: '*'+getLanguageText('pages.profile.labels.newsletter'),
            name: 'email',
            id: 'forgottenpwemail',
			hideLabel: true,
            allowBlank: false,
 			msgTarget: 'under',
 			blankText: getLanguageText('pages.register.error.email'),
            width:250,
            style:'height:18px;display:block;',
			vtype: 'emailextended'
        },{
			border: false,
			html: '<div class="buttonbox"><div class="submitbtn left"><a href="javascript:void(0);" onclick="fpPWDataForm.doAbort();">'+getLanguageText('defaults.cancel')+'</a></div>'
 				+ '<div class="submitbtn fll"><a href="javascript:void(0);" onclick="fpPWDataForm.doSubmit();">'+getLanguageText('defaults.send')+'</a></div></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:330,
        title: getLanguageText('pages.forgottenpw.title'),
        items: [ fpPWDataForm ],
        shadow:true
        });
	
	fpPWDataFormPopup.show(); 	
}


