Ext.onReady(function(){

   
   Ext.QuickTips.init();
   // message target    Ext.form.Field.prototype.msgTarget = "side";
     
   var myForm = new Ext.form.FormPanel({
	  standardSubmit: true,  
      title:"Free SEO Report",
	  labelWidth: 75,
      width:354,
      frame:true,
      items: [
         new Ext.form.TextField({
            id:"name",
            fieldLabel:"Your Name",
            width:245,
			name: 'name',
            allowBlank:false,
            blankText:"Please enter your full name"
         }),	  
         new Ext.form.TextField({
            id:"email",
			name: 'email',
            fieldLabel:"Your E-Mail",
            width:245,
            allowBlank:false,
            blankText:"Please enter your e-mail address",
            vtype:"email",
            vtypeText:"The from field should be an email address in the format of user@domain.com"
         }),

         new Ext.form.TextField({
            id:"phone",
            fieldLabel:"Tel",
            width:245,
			name: 'phone',
            allowBlank:false,
            blankText:"Please enter a telphone number"
         }),
         new Ext.form.TextField({
            id:"company",
			name: 'company',
            fieldLabel:"Company",
            width:245,
			allowBlank:false,
			blankText:"Please enter your company name"
         }), 
		 new Ext.form.TextField({
            id:"website",
			name: 'website',
            fieldLabel:"Website",
            width:245,
			allowBlank:false,
			blankText:"Please enter your website address"
         })
      ],
        buttons: [{
            text: 'Submit',
            handler: function() {
			myForm.getForm().getEl().dom.action = 'seo_report_send.php?send=yes';
	        myForm.getForm().getEl().dom.method = 'POST';
            myForm.getForm().submit();
            }
        }]
   });
myForm.render('seofree_main_left_form');
});
