$(document).ready(
function()
{
$('#formularz1').submit
 (
 function()
  {
  var error = '';
   $(".req").each(function(i)
   	{
   	if(this.value=='')
   		{
   		error += 'pole ' + this.name + ' jest puste \n';
  			this.style.background='#eeeeee';
   		}
   	});
  if(error!='') 
  		{
  		alert(error+'Wypełnij zaznaczone pola');
  		return false;
  		}
  else
  		{
  		$('#load').html('Wysyłanie formularza. Proszę czekać...');
  		$('#obrazek_gif').show();
  		return true;
  		}
  		
  }
 )

}
);
