function galeriaPokaz(nazwa)
{
   for (var c=2009; c<=2012; c++)
   {
      var nz = document.getElementById('gal'+c);
      
      if (nz!=undefined) nz.style.display = 'none';
   }
   document.getElementById('gal'+nazwa).style.display = '';
}

function banerZamknij()
{
   document.getElementById('bs').style.display = 'none';
}

function fsend()
{
   sprawdzPole(document.getElementById('form').f_im);
   sprawdzPole(document.getElementById('form').f_em);
   sprawdzPole(document.getElementById('form').f_tm);
   sprawdzPole(document.getElementById('form').f_tr);
   
   if (!isValidEmail(document.getElementById('form').f_em.value, true) ) document.getElementById('form').f_em.style.border='#990000 1px solid';
   else document.getElementById('form').f_em.style.border='#E9E9E9 1px solid';
}


function sprawdzPole(co)
{
   if (co.value.length<3) co.style.border='#990000 1px solid';
   else co.style.border='#E9E9E9 1px solid';
}	


function wl(co)
{
   if (document.getElementById('kl_op')) document.getElementById('kl_op').style.display='none';
   
   for (d=1; d<=5; d++)
   {
      document.getElementById('cz'+d).style.display = 'none';
   }
   document.getElementById('cz'+co).style.display = 'block';
}	
