Ext.ns('ux');ux.ContactMe=Ext.extend(Ext.form.FormPanel,{title:'Contact Me',icon:'x-icon-email',id:'ux-contact-form',frame:true,labelAlign:'top',defaultType:'textfield',defaults:{allowBlank:false,anchor:'100%'},buttons:[{text:'Send Email',iconCls:'x-icon-email_go',formBind:true,handler:function(){Ext.getCmp('ux-contact-form').getForm().submit({reset:true,waitMsg:'Sending Email...',url:'/api/email/',success:function(){Ext.Msg.alert('Your Email Has Been Sent','We will reply to you A.S.A.P.');}});}}],initComponent:function(){this.items=[{fieldLabel:'From',blankText:'Enter Your Email Address',emptyText:'Enter Your Email Address you would like us to reply to',vtype:'email',name:'from'},{fieldLabel:'Subject',blankText:'What is it that you are contacting us about?',emptyText:'What is it that you are contacting us about?',name:'subject'},{fieldLabel:'Message',xtype:'textarea',height:150,name:'message',emptyText:'Type Here ... ',}];ux.ContactMe.superclass.initComponent.call(this);}});

ContactMe=Ext.extend(ux.ContactMe,{initComponent:function(){ContactMe.superclass.initComponent.call(this);}});
