function showFeedbackDlg()
{
	
	var form = new Ext.FormPanel(
		{
			normalForm:true,
			autoHeight:true,
			waitMsgTarget:true,
			url:'/api/?do=feedback',
			bodyStyle:'padding:5px;border:none',
			defaultType:'textfield',
			debug:true,
			labelAlign:'right',
			labelWidth:60,
			defaults:{
				width:300
			},
			listeners:{
				beforeaction:function()
				{
					win.buttons[0].disable();
					win.buttons[1].disable();
				},
				actionfailed:function()
				{
					win.buttons[0].enable();
					win.buttons[1].enable();
				}
			},
			
			items:[
				{
					fieldLabel:'标题',
					name:'title',
					allowBlank:false,
					blankText:'请填写标题'
				},
				{
					fieldLabel:'类型',
					width:100,
					hiddenName:'type',
					xtype:'combo',
					store:[
						[0,'建议'],
						[1,'报告问题'],
						[2,'投诉']
					],
					value:0,
					triggerAction:'all',
					editable:false,
					mode:'local'
				},
				{
					fieldLabel:'验证码',
					width:100,
					allowBlank:false,
					blankText:'请填写验证码',
					name:'captcha'
				},
				{
					xtype:'box',
					height:40,
					tpl:'<img  src="/captcha.php?r={0}"/><a href="javascript:void(0)">看不清?</a>',
					autoEl:{tag:'div',style:'padding-left:70px'},
					listeners:{
						render:function(cmp){
							
							cmp.el.update(String.format(cmp.tpl,Math.random()));
							cmp.el.on('click',function(ev){
								if(ev.getTarget('a')){
									cmp.el.update(String.format(cmp.tpl,Math.random()));
									cmp.el.repaint();
								}
							},this,{delay:10});
						}
						
					}
				},
				{
					fieldLabel:'内容',
					name:'content',
					xtype:'textarea',
					allowBlank:false,
					blankText:'请填写内容'
				}
			]
		}
	);
	if(typeof _USER=='undefined' || !_USER)
		form.insert(2,
			{
				fieldLabel:'您的名字',
				name:'name',
				width:100
			},
			{
				fieldLabel:'您的Email',
				name:'email',
				vtype:'email',
				width:100
			}
		);
	var win =new Ext.Window({
		layout:'fit',
		title:'意见反馈',
		autoHeight:270,
		width:400,
		frame:true,
		items:form,
		buttons:[
			{text:'提交',handler:function(btn){
				form.getForm().submit({
					waitMsg:'正在提交数据,请稍后...',
					success:function(){
						win.close();
						Ext.Msg.alert('提交成功','您的反馈已提交成功,感谢您的支持');
					}
				});
			}},
			{text:'取消',handler:function(){
				
				win.close();
			}}
		],
		modal:true,
		resizable:false,
		draggable:true
	});
	win.show();
	win.layout.layout();
}