Ext.ns('Ext.ux.form');


Ext.ux.form.XMessageAlert = function(msg, title)
{
	return Ext.MessageBox.show({
		
		//header: false,
		//headerAsText: false,
		//cls:'x-win-aide-saisie',
		cls: 'x-custom-alert',
		closable: false,
		buttons: Ext.MessageBox.OK,
		
		msg: msg
		//icon: '../../../image/fr/annuler.gif'
		//buttons: Ext.MessageBox.OK
	});
}

Ext.ux.form.XMessageConfirm = function( msg, fn, objData, title )
{
	Ext.MessageBox.buttonText.yes = "oui";
	Ext.MessageBox.buttonText.no = "non";
	return Ext.MessageBox.show({
		//title: '<div class="x-dlg-hd-textconfirm">'+(title||'Confirmer')+'</div>',
		msg: msg,
		fn: fn,
		cls: 'x-custom-alert',
		scope: objData,
		buttons: Ext.MessageBox.YESNO
	});
}

Ext.ux.form.XMessageAlertOk = function( msg, fn, objData, title )
{
	Ext.MessageBox.buttonText.yes = "OK";
	return Ext.MessageBox.show({
		//title: '<div class="x-dlg-hd-textconfirm">'+(title||'Confirmer')+'</div>',
		msg: msg,
		fn: fn,
		cls: 'x-custom-alert',
		scope: objData,
		buttons: Ext.MessageBox.OK
	});
}