var win= null;
function galeria(mypage,w,h){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var myname='Galeria';
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=no,';
settings +='resizable=no';
win=window.open('obrazek.php?x='+mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}

function moveToPrevious()
{
  new Effect.Move('imageBoxInside', { x: 85, y: 0, transition: Effect.Transitions.sinoidal });
}  

function moveToNext()
{
  new Effect.Move('imageBoxInside', { x: -85, y: 0, transition: Effect.Transitions.sinoidal });
}

var win= null;
function produkt(mypage){
var winl = (screen.width-400)/2;
var wint = (screen.height-550)/2;
var myname='Produkt';
var settings ='height='+550+',';
settings +='width='+400+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars=yes,';
settings +='resizable=no';
win=window.open('opis.php?pid='+mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function test() {
	var tester
	tester=0
	if (document.info.dane.value=="") { window.alert(' Wpisz nazwisko i imię! '); tester=1 }
	if (document.info.tresc.value=="") { window.alert(' Wpisz treść zapytania! '); tester=1 }
	if (tester==1)
	{window.alert('Uzupełnij poprawnie wszystkie pola!'); return}
	else
	{document.info.submit()}
}