var arrWindows=new Array();

function getFormWindow(winKey){
	
	var win=arrWindows[winKey];

	if (win==null){
		win = new Ext.Window({
		    layout:'fit',
		    width:700,
		    id:winKey,
		    listeners:{
		    	destroy:function(){arrWindows[win.id]=null;}
		    },
		    closeAction:'destroy',
		    plain: true});
		arrWindows[winKey]=win; 
	}
	
	return win;
}

function showMessage(arrResponse){
	
	if (arrResponse["success"]){
		Ext.MessageBox.alert("Bilgilendirme",arrResponse["message"]);
		/*
		Ext.MessageBox.show({
		   title: 'Bilgilendirme...',
		   msg: arrResponse["message"],
		   buttons: Ext.MessageBox.OK,
		   fn:function (){alert('OK')},
		   icon: Ext.MessageBox.INFO});
		   */	
	}
	else{
		Ext.MessageBox.alert("Hata...",arrResponse["message"]);
		/*
		Ext.MessageBox.show({
		   title: 'Hata...',
		   msg: arrResponse["message"],
		   buttons: Ext.MessageBox.OK,
		   icon: Ext.MessageBox.ERROR});	
		*/
	}
}
