function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var okno = null;
function powieksz(width, height, url) {
	borderless=false;
	ScrWidth = 640; ScrHeight = 480;
	if (window.screen) {ScrWidth = window.screen.width; ScrHeight = window.screen.height}
	PosX = Math.round((ScrWidth - width)/2);
	PosY = Math.round((ScrHeight - height)/2);
	if (okno != null && !document.layers) {okno.close();}
	if (borderless && !document.layers) {
		okno = window.open("", "splash", "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
		okno.resizeTo(w, s);
		okno.moveTo(PosX, PosY);
	}
	else
		okno = window.open("", "splash", "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + PosX + ",top=" + PosY);

	okno.document.open();
	okno.document.clear();
	okno.document.write("<html><head><title>CUCINE Studio Mebli</title><style>body{background-repeat:no-repeat}</style></head><body background="+url+"></body></html>");
	okno.document.close();
	okno.focus();	
}

function sprawdz() {
	if (document.formularz.f1.value.length == 0) 
		{
			alert("Proszę podać imię i nazwisko!\n");
			document.formularz.f1.focus();
			return false;
		}
	if (document.formularz.f4.value.length == 0) 
		{
			alert("Proszę podać adres e-mail!\n");
			document.formularz.f4.focus();
			return false;
		}
	if (document.formularz.f8.value.length == 0) 
		{
			alert("Proszę wpisać treść wiadomości!\n");
			document.formularz.f8.focus();
			return false;
		}
	alert("Dziękujemy za wysłanie zapytania.\n");		
	return true; 

}

function sprawdz2() {
	if (document.formularz.f1.value.length == 0) 
		{
			alert("Proszę podać swoje imię i nazwisko lub nick!\n");
			document.formularz.f1.focus();
			return false;
		}
	if (document.formularz.f2.value.length == 0) 
		{
			alert("Proszę podać swój adres e-mail!\n");
			document.formularz.f2.focus();
			return false;
		}
	if (document.formularz.f3.value.length == 0) 
		{
			alert("Proszę podać imię i nazwisko lub nick znajomego!\n");
			document.formularz.f3.focus();
			return false;
		}
	if (document.formularz.f4.value.length == 0) 
		{
			alert("Proszę podać adres e-mail znajomego!\n");
			document.formularz.f4.focus();
			return false;
		}
	alert("Dziękujemy za rekomndację naszej witryny.\n");		
	return true; 

}
