function display(category) {
	var whichcategory = document.getElementById(category);
	if (whichcategory.className == "show") {
		whichcategory.className = "hide";
	} else {
		whichcategory.className = "show";
	}
}
function show(category) {
	var whichcategory = document.getElementById(category);
	whichcategory.className = "show";
}
function hide(category) {
	var whichcategory = document.getElementById(category);
	whichcategory.className = "hide";
}

function obiekt(id) {
  var o = false;
  if (document.getElementById)
    o = document.getElementById(id);
  else if (document.all)
    o = document.all[id];
  else if (document.layers)
    o = document.layers[id];
  return o;
}

function pokaz(id) {
  o = obiekt(id);
  if (!o)
    return false;
  o.style.display = '';
}

function ukryj(id) {
  o = obiekt(id);
  if (!o)
    return false;
  o.style.display = 'none';
}

function pokaz_ukryj(id) {
  o = obiekt(id);
  if (!o)
    return false;
  if (o.style.display == 'none')
    o.style.display = '';
  else
    o.style.display = 'none';
}
function otworz(t, w, h, s) {
  nowe = window.open('', '', 'toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,height='+h+',width='+w);
  nowe.document.open();
  nowe.document.write('<?xml version="1.0" encoding="ISO-8859-2"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">\n<head>\n<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" />\n<title>'+t+'</title>\n</head>\n<body style="padding: 0; margin: 0">\n<a href="javascript:window.close()"><img src="'+s+'" border="0" alt="'+t+'" width="'+w+'" height="'+h+'" /></a>\n</body>\n</html>');
  nowe.document.close();
  nowe.focus();
}
