	$(document).ready(function(){
		$('#spw').mouseover(function(){
			$('#spw').stop().animate({
				'right' : "0px"
			});
		}).mouseout(function(){
			$('#spw').stop().animate({
				'right' : "-50px"
			});	
		});
		$('#konsalochrona').mouseover(function(){
			$('#konsalochrona').stop().animate({
				'right' : "0px"
			});
		}).mouseout(function(){
			$('#konsalochrona').stop().animate({
				'right' : "-45px"
			});	
		});	
	});
	
	function wylaczButton()
	{
		document.formularz.wysylka.disabled = true;
	}
	function czyBlad(nr)
	{
		var errory = 0;
		var spr = document.getElementById("blad" + nr).value;
		if (spr == "") 
		{
			document.getElementById("err" + nr).style.display = 'inline';
			document.getElementById("ok" + nr).style.display = 'none';
		}
		else
		{
			document.getElementById("ok" + nr).style.display = 'inline';
			document.getElementById("err" + nr).style.display = 'none';
		}
		for (i = 1; i < 7; i++)
		{
			if (document.getElementById("blad" + i).value == "") 
			{
				errory++;
			}
			else
			{
				errory += 0;
			}
		}
		if (errory == 0)
		{
			document.formularz.wysylka.disabled = false;
		}
		else
		{
			document.formularz.wysylka.disabled = true;
		}
	}
