// JavaScript Document


function no(strToUrl,name,width,height)
{
 window.open(strToUrl, name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width= ' + (width) + ',height=' + (height)+',left='+(screen.width/2-width/2)+',top='+(screen.height/2-height/2));
}


function wyswietlZdjecie(id){
	$('duzeZdjecie').src='zdjecie!get.action?zdjecieImageWidth=320&zdjecieImageHeight=240&obrazId='+id;	
	$('duzeZdjecieLightbox').href='zdjecie!get.action?obrazId='+id;
	return false;
}

function pokazMail(){	
	$('wyslijEmail').toggle();
}


function pokazMail2(){	
	$('wyslijEmail2').toggle();
}


function sprawdz(adres) {
	var re = new RegExp("[^@]{1,}[@]{1}[^@.]{1,}[.]{1}[^@]{1,}","gi");
	if(!re.test(adres)) {
		window.alert("Wprowad¼ prawid³owy adres e-mail.");
		return false;
	}
	return true;
}

function czyscMail(){	
	$('mailAdres').value="";
	$('mailAdres').style.color='black';
}


function czyscMail2(){	
	$('mailAdres2').value="";
	$('mailAdres2').style.color='black';
}
