function showpic(pic, w, h, tit) {
	pw=window.open('', 'pw', 'height='+h+68+', width='+w+6+', screenX=50, screenY=50, top=50, left=50, toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes');
	if(!tit) tit='Картинка';
	buf = '<html><head><title>'+tit+'</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><a href=# onClick=self.close()><img src="'+pic+'" alt="Щелкните на картинке, чтобы закрыть окно" border=0></a></body></html>'
	pw.document.write(buf);
	pw.document.close();
	pw.resizeTo(w+6, h+68);
	pw.focus();
}

function showpic2 (id, tid){
	ppw=window.open('showpict.php?id='+id+'&tid='+tid, 'ppw', 'height=400, width=600, screenX=50, screenY=50, top=50, left=50, toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes');
}
