function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) 
{
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><link rel="stylesheet" href="style.css" type="text/css"><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src='+imageName+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function ShowWKoment(imageName,imageWidth,imageHeight,alt,posLeft,posTop,koment) 
{
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+(parseInt(imageHeight)+parseInt(43))+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><link rel="stylesheet" href="style.css" type="text/css"><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src='+imageName+'>'); 
	newWindow.document.write('<br><br><center>'+koment+'</center><br>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function MM_preloadImages() 
{
	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];
					}
		}
}

function displayWindow(adres,szerokosc,wysokosc) 
{ 
window.open(adres,'','scrollbars,width='+szerokosc+',height='+wysokosc);
}



function mov(el, obrazek, el1, obrazek1) 
{
	var glowna = document.getElementById(el);
	var glowna1 = document.getElementById(el1);
	glowna.style.backgroundImage = "url("+obrazek+")";
	glowna1.style.backgroundImage = "url("+obrazek1+")";
	glowna.style.color = "#000080";

}


function mov1(el, obrazek, el1, obrazek1) 
{
	var glowna = document.getElementById(el);
	var glowna1 = document.getElementById(el1);
	glowna.style.backgroundImage = "url("+obrazek+")";
	glowna1.style.backgroundImage = "url("+obrazek1+")";
	glowna.style.color = "#B22222";
}


function zm(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.backgroundImage = "url('gfx/zakladka-b.gif')";
}

function zm1(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.backgroundImage = "url('gfx/zakladka-a.gif')";
	glowna.style.color = "#B22222";
}

function zma(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.background = "#D2D2D2";
}

function zma1(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.background = "#D2D2D2";
}

function zmb(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.background = "#F0F0F0";
}

function zmb1(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.background = "#E6E6E6";
}



function sprawdzenie(form_)
{
	if (form_.email.value==null || form_.email.value=="" || form_.nazwisko.value==null || form_.nazwisko.value=="" || form_.imie.value==null || form_.imie.value=="" || form_.nazwa_firmy.value==null || form_.nazwa_firmy.value=="" || form_.telefon.value==null || form_.telefon.value=="" || form_.tresc.value==null || form_.tresc.value=="")
	{
		alert("Proszę wypełnić wszystkie pola zaznaczone na czerwono !");
		return false;
	}
	return true;
}

function zmad(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.background = "#ADD8E6";
}

function zmad1(el) 
{
	var glowna = document.getElementById(el);
	glowna.style.background = "#f0f0f0";
}

function sprawdzenie1(form_)
{
	if ((form_.nazwisko.value==null) || (form_.nazwisko.value=="") || (form_.imie.value==null) || (form_.imie.value=="") || (form_.nazwa_firmy.value==null) || (form_.nazwa_firmy.value=="") || (form_.email.value==null) || (form_.email.value=="") || (form_.telefon.value==null) || (form_.telefon.value=="") || (form_.nip.value==null) || (form_.nip.value=="") || (form_.ulica.value==null) || (form_.ulica.value=="") || (form_.kod_pocztowy.value==null) || (form_.kod_pocztowy.value=="") || (form_.miasto.value==null) || (form_.miasto.value=="") || (form_.tresc.value==null) || (form_.tresc.value==""))
	{
		alert("Proszę wypełnić wszystkie pola zaznaczone na czerwono !");
		return false;
	}
	return true;
}
