function cache()
{
	this.cont = new Object();
	
	this.init = function()
	{
	}
	
	this.czytaj = function(name)
	{
		return this.cont['name'];
	}

	this.jestcache = function(name)
	{
		if(typeof this.cont[name] != 'undefined' && this.cont[name].length)
			return true;
		else
			return false;
	}
	
	this.usun = function(name)
	{
		this.cont['name'] = {};
	}

	this.utworz = function(name)
	{
		if(typeof this.cont[name] == 'undefined')
			this.cont[name] = new Object();
		else
			alert('Kontener cache\'u istnieje');
	}
	
	this.zapisz = function(name, data)
	{
		this.cont[name] = data;
	}
	
	this.init();
}
