Ext.Msg.show2 = function(options) {
	Ext.Msg.show(options);
}

function msg_error($error_text) {
	Ext.Msg.show2({
		title: 'System error is occured',
		msg: $error_text,
		buttons: Ext.Msg.OK,
		icon: Ext.MessageBox.ERROR
	});
}

function msg_ok($error_text) {
	Ext.Msg.show2({
		title: 'Ok',
		msg: $error_text,
		buttons: Ext.Msg.OK,
		icon: Ext.MessageBox.OK
	});
}

Ext.tree.TreeLoader.prototype.load = function(node, callback){
    if(this.clearOnLoad){
        while(node.firstChild){
            node.removeChild(node.firstChild);
        }
    }
	this.requestData(node, callback);
};
