function info(msg)
{
	new Ext.ux.window.MessageWindow(
	{
		title: 'Сообщение',
		html: msg || 'Сообщение не доступно',
		origin: {offY:-5,offX:-5},
		autoHeight: true,
		iconCls: 'icon-info',
		help: false,
		hideFx: {delay:5000, mode:'standard'},
		listeners:
		{
			render: function() {}
		}
	}).show(Ext.getDoc());

	if (Ext.getCmp("statusbar"))
	{
		Ext.getCmp("statusbar").setText(msg);
	}
}


function note()
{
	Ext.Msg.prompt('Заметка', 'Текст:', function(btn, text)
	{
		if (btn == 'ok')
		{
			new Ext.ux.window.MessageWindow(
			{
				title: 'Заметка',
				html: text || 'Текст не доступен',
				origin: {pos:'tr-tr',offY:0,offX:0},
				autoHeight: true,
				iconCls: 'icon-info',
				help: false,
				showFx: {align: 't'},
				hideFx: {align: 't', delay:5000, mode:'null'},
				resizable: true,
				pinState: 'pin',
				pinOnClick: false
			}).show(Ext.getDoc());
		}
	});	
}

