Nowe=null;
function Show_photo(src,s,w) {
w1 = w + 40;
if (Nowe) Nowe.close();
Nowe=window.open('','','toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no'
+",height="+w1
+",width="+s);
Nowe.document.open();
Nowe.document.write("<HTML><HEAD><TITLE>Kronika wydarzeń</TITLE><STYLE>BODY{BACKGROUND-REPEAT:no-repeat}</STYLE></HEAD><BODY cellpadding='0' cellspacing='0'><img id='photo' src='"+src+"'><br><br><center><b><a style='font-face: Tahoma; font-size:10pt;' href='javascript: window.close();'>Zamknij okno</a></b></BODY></HTML>")
Nowe.focus()
}



/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
/* Fireworks MX 2004 Dreamweaver MX 2004 target.  Created Tue Jan 20 22:56:11 GMT+0100 2004-->*/

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



Nowe=null;
function are_you_sure() 
{
if (confirm('Czy na pewno chcesz zmienić te uprawnienia?'))
return -1;
}
function are_you_sure_usun() 
{
if (confirm('Na pewno usun±ć?'))
return -1;
}
function goToURL() 
{
history.go(-1); 
}
function goTo(ile) 
{
if (ile==1) history.go(-1); 
if (ile==2) history.go(-2); 
}
function Okienko_zmien()
{
Nowe = null;
Nowe = window.open("zmiana.php","","width=300,height=40,resizable");
}
function Okienko_usun()
{
Nowe = null;
Nowe = window.open("usun.php","","width=300,height=40,resizable");
}

function Okienko(src, id) {
	if (Nowe) Nowe.close();
	Nowe=window.open('kontakty.php?i='+src+'&id='+id,'okno','toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,height=40,width=300');
	Nowe.focus()
}

function termin(liczba) 
{
	if (confirm('Dodać termin '+liczba+' ?'))
		{
		Nowe = null;
		Nowe = window.open("dodaj_termin.php?datka="+liczba,"TYTUŁ","width=300,height=60,resizable,left=400,top=300");
	}
else
return -1;
}

function StudInfo(who)
{
Nowe = null;
Nowe = window.open("user_info.php?type=s&id="+who,"","width=300,height=350,resizable");
}

function WykInfo(who)
{
Nowe = null;
Nowe = window.open("user_info.php?type=w&id="+who,"","width=300,height=350,resizable");
}
function KursInfo(who)
{
Nowe = null;
Nowe = window.open("kurs_info.php?id="+who,"","width=400,height=300,resizable,scrollbars=yes");
}

function doit(){
if (!window.print){
alert("Musisz mieć NS4.x lub IE5,\naby użyć przycisku drukowania!")
return
}
window.print()
}
function Drukuj(){
choice=confirm("Chcesz wydrukować raport?")
if (choice) doit()
}

function Chat() {
    var Win = window.open("../chat.php","","width="+(screen.width*0.8)+",height="+(screen.height*0.8)+",left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable");
}

function Akapit()
{
window.open("./akapit.php","","width=400,height=350,left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable" );
}
function Lista()
{
window.open("./lista.php","","width=400,height=300,left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=yes,status=no,directories=no,resizable" );
}
function Zdjecie()
{
window.open("./zdjecie.php","","width=400,height=350,left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable" );
}
function Pasek()
{
window.open("./pasek.php","","width=400,height=300,left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable" );
}
function Podtytul()
{
window.open("./podtytul.php","","width=400,height=300,left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable" );
}
function Tabela()
{
window.open("./tabela.php","","width=500,height=400,left=50,top=50,toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,directories=no,resizable" );
}


function mouse_move(obj,t) {
     var
     NS4 = (document.layers) ? 1 : 0;
     IE4 = (document.all) ? 1 : 0;
     obj.bgColor = "#FFDB88";
     if (NS4) t='hand';
        else if (IE4) { if (t=='pointer') t='hand'; }
               else if (GECKO) ;
                obj.style.cursor=t;
 }
   
function mouse_out(obj) {      
    obj.bgColor = obj.style.backgroundColor;
 } 