// JavaScript Document
function sprawdz_formularz(AForm)
{
	if(AForm.imie.value == "")
	{
        alert("Prosze wypelnic pole imie.");
        return false;
    }
	reg = /^[a-zA-Z0-9acelnószzACELNÓSZZ\.]{1,30}@[a-zA-Z0-9acelnószzACELNÓSZZ]+(\.[a-zA-Z0-9acelnószzACELNÓSZZ]+)+$/;
    wynik  = AForm.email.value.match(reg);
    if (wynik  == null) 
	{
        alert("Prosze podac poprawny adres email. " +
              "Poprawny adres musi zawierac malpe " +
              "oraz co najmniej dwa czlony nazwy serwera, " +
              "np. a@b.c lub ala@ma.kota.czarnego.com.");
        return false;
    }
    return true;
}

function zmien_jezyk(now,dest)
{
	myUrl = location.href; 
	temp = myUrl.split(now);
	window.location = temp[0] + dest + temp[1];
	return false;
}
