function showEditor(item){
	window.open("editor.php?item="+item, item, "height=635,width=825,modal=yes,alwaysRaised=yes");
}


function showEditor_OLD(item){
	var win = new Ext.Window({
        layout:'fit',
		id: 'win-' + item,
        width:850,
        height:550,
	//    modal: true,
        items : [{
			id: 'editor-' + item,
			xtype : 'fckeditor',
			Name : 'editor',
			ToolbarSet : 'Default',
			BasePath:  '/fckeditor/', // If your fckeditor set up the root path,or fix it.
			Value : '<div style="background-color: rgb(0, 16, 29);">' + Ext.get(item).dom.innerHTML
		}],	
        buttons: [{
            text:'Submit',
            handler: function (){
				var editor = Ext.getCmp('editor');
				Ext.Ajax.request({
					url: web_path + 'ajax.php?m=saveDictioItem',
					method: 'POST',
					params: {
						item: item,
						value: editor.getValue()
					},
					success: function (res, op){
						var rez = Ext.decode(res.responseText);
						if(!rez['err']){
							var v = editor.getValue();
							v = v.replace('<div style="background-color: rgb(0, 16, 29);">', '');
							Ext.get(item).dom.innerHTML = v;
							win.destroy();
						}else{
							Ext.MessageBox.alert('Error', rez['msg']);
						}
					}
				});
			}
        },{
            text: 'Close',
            handler: function(){
                win.destroy();
            }
        }]
    });
	
	win.show();
	var editor = Ext.getCmp('editor');
}