﻿/*function showUsers() {
	var pageId = document.usrForm.map.value;
	var url = "index.php?n=kat&k="+pageId;
	//alert (url);
	window.location.replace(url);
}
*/
function show(what) {
	var active;
	var elem = document.getElementById(what);
	if (elem.active == true) {
	elem.style.display = 'none';
	elem.active = false;
	}
	else {
	if (navigator.appName=='Netscape') {elem.style.display = 'table-cell';}
	else  {elem.style.display ='block';}
	elem.active = true;
	}
	
}
function change(what){
	var elem = document.getElementById(what);
	elem.style.border = '3px solid #015cc1';
	elem.style.backgroundColor = '#288af9';
}
function unchange(what){
	var elem = document.getElementById(what);
	elem.style.border = '';
	elem.style.backgroundColor = '';
}
function submitSearch() {
	var f = document.getElementById('searchform');
	if ((f.nazwa.value=='-nazwa-')||(f.nazwa.value=='-название-'))
		f.nazwa.value = '';
	if ((f.opis.value=='-opis-')||(f.opis.value=='-описание-'))
		f.opis.value = '';
	f.submit;
}

function openwindow(target){
		window.open(target, "menu", "toolbar=yes, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=700, height=600");
}
function openimg(imagename){
<!-- 
	nw = window.open("about:blank","",'left=100, top=100, location=no, directories=no, width=540, height=360, resizable=0, scrollbars=no, menubar=no')
	doc = nw.document;
	doc.open('text/html');
	doc.write('<html><head><title>Iurista<\/title>');
	doc.write('<style type="text/css">body {background: #f0f0f0 url(imgs/back.gif) left top repeat;height:400px;padding-top:10px;}img {border:0px;}.big_img {border:0}a {color : #ffffff;text-decoration : none;}</style>');
	doc.write('<\/head><body><table width="520" height="330" valign="middle" border="0"><tr><td><center>');
	doc.write('<a href=# onclick=self.close()><img src=' + imagename + ' alt="Zamknij okno" class="big_img" style="vertical-align:middle;"><\/a><\/center><\/td><\/tr><\/table>');
	doc.write('<\/body><\/html>');
	doc.close();
}
