function showBox(what,id)
{
	var box = $('cbox');
	if(!box){
		var box = new Element('div').setProperty('id', 'cbox').injectInside(document.body);
		box.setStyles({'z-index':190000,'background': 'black','opacity': '0','position': 'absolute','width': '100%','height': window.getScrollHeight(),'top': 0,'left': 0});
		box.addEvent('click', showBox);
		box.effect('opacity',{duration:500}).start(0,0.7);
		var pwbox = new Element('div').setProperty('id', 'pwbox').injectInside(document.body);
		pwbox.setStyles({'position':'absolute','z-index':190001,'background':'transparent','color':'white','width':'100%','text-align':'center','top':((window.getHeight()/2)-10)+'px'});
		pwbox.setHTML('<b>Proszę czekać...</b>');
		window.scrollTo(0,0);
		new Ajax('ajaxData.php', {postBody: 'show='+what+'&id='+id, onComplete: function(response){
			pwbox.remove();
			var tbox = new Element('div').setProperty('id', 'tbox').injectInside(document.body);
			tbox.setStyles({'z-index':200000,'font-size':'11px','letter-spacing':'-1px','background': '#F4FDFA','opacity': '0','position': 'absolute','width': 0,'top': 0,'left': (window.getWidth()/2),'padding': '18px','border': '2px solid black','overflow': 'hidden'});
			tbox.setHTML(response+
			'<div style="text-align: right; font-size: 9px;"><a href="#" style="color: blue;" onclick="return showBox();">Zamknij okno</a></div>');
			tbox.effects().start({'opacity':[0,1],'width':[0,700],'left':[(window.getWidth()/2),(window.getWidth()/2)-370]}).chain(function(){box.setStyle('height', window.getScrollHeight()+'px');});
		}}).request();
	}else{
		var tbox = $('tbox');
		tbox.effect('opacity',{duration:300,onComplete:function(){tbox.remove();}}).start(1,0);
		box.effect('opacity',{duration:500,onComplete:function(){box.remove();}}).start(0.7,0);
	}
	return false;
}