function createform(){
    Ext.QuickTips.init();

    // turn on validation errors beside the field globally
    Ext.form.Field.prototype.msgTarget = 'side';

    var simple = new Ext.FormPanel({
        labelWidth: 100, // label settings here cascade unless overridden
        frame:true,
        width: 600,
		fileUpload: true,
		isUpload: true,		
        defaults: {width: 450},
        defaultType: 'textfield',
		keys: [{ key: Ext.EventObject.ENTER, fn: onSubmit }],

		items: [{
					name          : 'name',
					allowBlank    : false,
					value		  : '',
					fieldLabel    : name_label
			},{
					name          : 'address',
					fieldLabel    : address_label
			},{
					name          : 'tel',
					fieldLabel    : tel_label
			},{
					name          : 'fax',
					fieldLabel    : 'Fax'
			},{
					name          : 'email',
					allowBlank	  : false,
					value		  : '',
					vtype         : 'email',
					fieldLabel    : 'Email'
			},{
					name          : 'title',
					allowBlank    : false,
					value		  : '',
					fieldLabel    : title_label
			}
			,{
					xtype         : 'fckeditor',
					name          : 'des',
					id            : 'des',
					fieldLabel    : content_label,
					height        : 300,
					value		  : ''					
			},{
					xtype         : 'checkbox',
					name          : 'newsletter',
					allowBlank    : false,
					labelSeparator:'',
					labelWidth	: 50,
					inputValue	  :'newsletter',
					boxLabel	  :"I want to receive newsletter from VASSS"
			}
        ],
        buttons: [{
            text: sendbutton,
            handler: onSubmit
		},{
			text: clearbutton,
			handler: function(){
				simple.getForm().reset();
			}
		}]
    });

 	function onSubmit(){
                if(simple.getForm().isValid()){
	                simple.getForm().submit({
						waitTitle: waittitle,
	                    waitMsg: progress,
						url: linkurl,
						method: 'post',
						enctype:'multipart/form-data',
						success:function(){ 
                        	Ext.Msg.alert(status, message, function(btn, text){
								if (btn == 'ok'){
									window.location = weburl;
								}
			        		});
                        },
                        failure:function(form, action){ 
                            if(action.failureType   == 'server'){ 
                                obj = Ext.util.JSON.decode(action.response.responseText); 
                                Ext.Msg.alert(loi, obj.errors.reason); 
								
                            }else{ 
                                Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText); 
                            } 
                        } 
	                });
                }
            };        

    simple.render("contactform");
    
}

