<!--

var from = escape(document.referrer);
var query = location.search;
var colorDepth = window.screen.colorDepth;			
var res = window.screen.width + "," + window.screen.height;
document.write("<img src='http://www.jazzimagazine.com/statystyka/zlicz.php?referer=" + from + "&query=" + query + "&kolory=" + colorDepth + "&rozdzielczosc=" + res + "' align='middle' style='display:none'>");

var okno = null;
function PowiekszZdjecie(url, width, height)
{
  ScrWidth = 640;
  ScrHeight = 480;
  if(window.screen)
  {
    ScrWidth = window.screen.width; 
	ScrHeight = window.screen.height;
  }
  if(okno != null && !document.layers)
  {
    okno.close();
  }
  PosX = Math.round((ScrWidth - width) / 2);
  PosY = Math.round((ScrHeight - height) / 2);
  okno = window.open("", "aktualnosci", "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>Zdjęcie</title><style>body{margin:0px}</style></head><body><a href=\"javascript:window.close();\"><img src=\""+ url +"\" alt=\"Zamknij okno\" width=\""+ width +"\" height=\""+ height +"\" border=\"0\"></a></body></html>");
  okno.document.close();
  okno.focus();	
}

var okno = null;
function OtworzNoweOkno(adres)
{
	width = 400;
	height = 450;
	ScrWidth = 640;
	ScrHeight = 480;
	if(window.screen)
	{
	    ScrWidth = window.screen.width; 
		ScrHeight = window.screen.height;
	}
	if(okno != null && !document.layers)
	{
		okno.close();
	}
	PosX = Math.round((ScrWidth - width) / 2);
	PosY = Math.round((ScrHeight - height) / 2);
	okno = window.open(adres, "pracaunas", "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.focus();	
}

function Konkurs()
{
	width = 263;
	height = 549;
	ScrWidth = 640;
	ScrHeight = 480;
	if(window.screen)
	{
	    ScrWidth = window.screen.width; 
		ScrHeight = window.screen.height;
	}
	if(okno != null && !document.layers)
	{
		okno.close();
	}
	PosX = Math.round((ScrWidth - width) / 2)+247;
	PosY = Math.round((ScrHeight - height) / 2);
	okno = window.open("", "konkurs", "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>Konkurs Polonii Records & Jazzi</title><style>body{margin:0px}</style></head><body><a href=\"javascript:window.close();\"><img src=\"images/konkurs.gif\" alt=\"Zamknij okno\" width=\""+ width +"\" height=\""+ height +"\" border=\"0\"></a></body></html>");
    okno.document.close();
	okno.focus();	
}

function sprawdzemail(adres) 
{	
	a = adres.value.search(/@/i);
	a1 = adres.value.substring(0,a);
	a2 = a1.length;
	a = a + 1;
	b = adres.value.indexOf(".");
	b1 = adres.value.substring(a,b);
	b2 = b1.length;
	b = b + 1;
	c = adres.value.length;
	c1 = adres.value.substring(b,c);
	c2 = c1.length;
	if(adres.value.indexOf("@") != "-1" && adres.value.indexOf(".") != "-1" && a2 >= 1 && b2 >= 1 && c2 >= 1)
	{
		return true;
	}
	else
	{
		return false;
	}		
}

function sprawdz_formularz_biuletyn(f)
{
	if(f.email.value.length == 0) 
	{
		alert("Podaj adres e-mail.");
	    f.email.focus();
	    return false;
	}
	else
	{
	    if(sprawdzemail(f.email) == false)
	    {
	    	alert("Adres e-mail, który podałeś jest niepoprawny!");
	    	f.email.focus();
	    	return false;
	    }
	}
}

// -->