Ext.onReady(function() {
	var login = new Ext.FormPanel({
		url: PostURL, method: 'POST', standardSubmit: true,
		defaultType: 'textfield', hideLabels: true, autoHeight: true,
		bodyStyle: 'padding-top:25px;padding-left:20px;padding-bottom:25px;',
		items:[
			{xtype: 'component', html: '<input type="text" name="user" value="'+formUsername+'" hidefocus="true" tabindex="-1" style="position:absolute;z-index:-100;width:1px;height:1px;" />'},
			{xtype: 'displayfield', value: formTitle, style: 'color:gray;font-size:16px;'},
			{
				id: 'passField', name: 'pass', inputType: 'password',
				width: 323, tabIndex: 1, style: 'font-size:16px;', height:30
			},
			{xtype: 'component', html: '<input type="submit" hidefocus="true" tabindex="-1" style="position:absolute;z-index:-100;width:1px;height:1px;" />'}
		]
	});
	var win = new Ext.Window({
		border: false,

		layout: 'fit',
		width: 370, autoHeight: true,
		closable: false, resizable: false, plain: true, draggable: false,
		items: login,
		buttons: [{
			text: submitLabel,
			formBind: true,	cls: 'fr-btn-default fr-btn-primary',
			handler:function(){login.getForm().el.dom.submit();}
		}]
	});
	win.show();
});