function okno(plik, szer, wys) {
 if((wys>screen.height-90) && (szer>screen.width-40)) {
  wys = screen.height-90
  szer = screen.width-40
  scrol = 1
 } else if(wys>screen.height-90) {
  wys = screen.height-90
  szer += 20
  scrol = 1
 } else if(szer>screen.width-40) {
  szer = screen.width-40
  wys += 20
  scrol = 1
 } else scrol = 0

 lewo=(screen.width-szer)/2-3
 window.open("zdjecie_1.php?adres=" + plik, "", "left=10, top=10, width="+szer+", height="+wys+", directories=0, location=0, menubar=0, scrollbars="+scrol+", status=0, toolbar=0, resizable=0")
}

function plik(plik, szer, wys) {
 window.open(plik, "", "left=10, top=10, width="+szer+", height="+wys+", directories=0, location=0, menubar=0, scrollbars=0, status=0, toolbar=0, resizable=0")
}


function zdjecie(adres) {
	window.open('galeria_zdjecie.php?adres=' + adres, '', 'left=10, top=10, width=510, height=510, directories=0, location=0, menubar=0, scrollbars=0, status=0, toolbar=0, resizable=0');
}

function zdjecie_3(adres) {
	window.open('zdjecie_3.php?url=' + adres, '', 'left=10, top=10, width=720, height=770, directories=0, location=0, menubar=0, scrollbars=0, status=0, toolbar=0, resizable=0');
}