/**
 * @author Stefano Cavezzo
 * @copyright 2008
 * @licence: www.nowconnect.it/licence/webcreator
 */



Ext.onReady(function(){



Ext.get('dologin').on('click',function(){  
 	
 	
 		var simple = new Ext.form.FormPanel({
        standardSubmit: true,
        frame:true,
 		bodyStyle:'padding:30px 5px 0', 
        defaults: {width: 130},
        defaultType: 'textfield',
		items: [{
                fieldLabel: 'Username',
                name: 'username',
                allowBlank:false
            },
			{
                fieldLabel: 'Password',
				name: 'password',
				inputType: 'password',
				allowBlank: false
            }
        ],
        buttons: [{
            text: 'Login',
            handler: function() {
	        simple.getForm().getEl().dom.method = 'POST';
                simple.getForm().submit();
            }
        }]
    });
 
	var window = new Ext.Window({
        title: 'Login',
        width: 300,
        height:200,
 	    resizable: false,
        layout: 'fit',
        plain:true,
        bodyStyle:'padding:5px;',
        buttonAlign:'center',
        items: simple
    });
 	window.show();
 	
 
 	
 	});
 	
 
 	
	});
