
	String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
 
	function popup(url, x, y) {
		var szer = x;
		var wys = y;
		okno = window.open(url, 'Okno', 'toolbar=0,location=0,directories=0,scrollbars=0,status=0,menubar=0,resizable=no,width='+szer+',height='+wys);
		okno.moveTo(parseInt((screen.width - szer) / 2),parseInt((screen.height - wys) / 2));
		okno.focus();
	}

	function hl_tu(id, typ, onoff) {
		if (document.getElementById) {
			var im = document.getElementById(id);
			im.src = '/img/tu_'+typ+onoff+'.gif';
		}
	}

	function zdjecie(base, roz) {
		if (document.getElementById) {
			var zdj = document.getElementById('zdjatko');
			zdj.src = '/img/' + base + '.prev.' + roz;
		}
	}

