// Copyright Pawel Tomaszek
// 31.01.2003

function okienko(plik, tytul)
{
tekst=window.open('', 'Nazwa', 'resizable, toolbar=no, location=no, width=700, height=530, leftmargin=0, top=0');
tekst.document.write('<html><head><title>', tytul, '</title>');
tekst.document.write('<body bgcolor=#31c1e4>');
tekst.document.write('<link rel="StyleSheet" href="../style/style.css" type="text/css">');
tekst.document.write('<script language="JavaScript1.2" src="../style/script.js"></script>');
tekst.document.write('<table align="Center" width="100%" height="100%" border="0">');
tekst.document.write('<tr>');
tekst.document.write('<td align=center valign=middle>');
tekst.document.write('<img src=', plik, ' border=1><br><br>');

tekst.document.write('<table border=1 bordercolor=black CELLSPACING=1>');
tekst.document.write('<tr>');
tekst.document.write('<td onMouseOver=chgBg("tlm3",3) onMouseOut=chgBg("tlm3",0) id=tlm3 onMouseDown=window.close() ');
tekst.document.write('bgcolor="#C88700" style="padding-right:15px;padding-left:15px" align=left>');
tekst.document.write('<table cellpadding=0 cellspacing=0 border=0><tr><td><font>');
tekst.document.write('<A ID="tlm3a" HREF="#"><B>Zamknij</B></A></font></td></tr></table></td>');
tekst.document.write('</tr>');
tekst.document.write('</table>');

tekst.document.write('</td>');
tekst.document.write('</tr>');
tekst.document.write('</table>');


}


//określenie stałych

	tlmOrigBg = "#518A9F";
	tlmOrigCol = "White";
	tlmHlBg = "#97BCCA";
	tlmHlCol = "Black";
	borderCol = "#518A9F";
	menuBg = "#74A5B8";

//funkcja która zamienia tło w komórce tabeli

function chgBg (it, col)
	{
	el=eval (it) ;
	ela=eval (it+'a') ;

	if (col==0)
		{
		el.style.background = tlmOrigBg ;
		ela.style.color = tlmOrigCol ;
		}
	  else
		{
		if (col&1) el.style.background = tlmHlBg ;
		if (col&1) ela.style.color = tlmHlCol ;
		if (col&4) el.style.background = menuBg ;
		if (col&4) ela.style.color = tlmOrigCol ;

		}
	}

//---------------ukrywanie obiektu---------------
function ukryj(obiekt){
el=eval (obiekt);
el.style.visibility='hidden';
}
//-------------ukrywanie obiektu end-------------

