function chPass()
{
	ok = true;
	np = document.chPassForm.nowe_haslo.value;
	np2 = document.chPassForm.nowe_haslo_2.value;
	if(np.length ==0) { alert('Nie podano nowego hasła.'); ok = false; }
	if(np != np2) { alert('Podane nowe hasła różnią się'); ok = false; }
	return ok;
}
