//this is the main editor window
VideoDownloadWindowUi = Ext.extend(Ext.Window, {
    title: 'Watch Video',
    id:'video-window',
    bodyStyle:'position:relative;',
    width:330,
    autoHeight:true,
    resizable:false,
    draggable: true,
    modal: true,
    closeAction: 'close',
    layout:'form',
    buttons:[{
        text:'Save',
        itemId:'post-form'
    }],
    initComponent: function() {
        this.contactUrl = "lib/backend-request.php";
        this.action = "video-form";
        this.type = "save";
        
        this.items = [{
            xtype:'form',
            itemId:'video-form',
            unstyled:true,
            border:false,
            frame:false,
            method:'POST',
            url:this.contactUrl,
            width:310,
            autoHeight:true,
            baseParams:{
                site:"1",
                lang:"en",
                intcont:"28",
                action:this.action,
                type:this.type
            },
            padding:'5 5 5 5',
            labelWidth:90,
            labelPad:5,
            defaultType:'textfield',
            defaults:{
                width:150,
                allowBlank:false,
                anchor:'100%'
            },
            //the text fields for the form
            items:[{
         /*       fieldLabel:'Full Name bad',
                id:'name'
            },{ */
            fieldLabel:'Full Name',
                id:'name2'
            },{   
			   fieldLabel:'Company Name',
                id:'company'
            },{
                fieldLabel:'Title/Position',
                id:'title'
            },{
                fieldLabel:'Email',
                id:'email',
                validator:Ext.form.VTypes.email
            },{
                fieldLabel:'Telephone Number w/Ext',
                id:'phone'
            }]
        }];
        
        this.buttons = [{
            text:'Submit Request',
            itemId:'submit'
        },{
            text:'Cancel',
            itemId:'cancel'
        }];
        
        VideoDownloadWindowUi.superclass.initComponent.call(this);
    }
});
