<!--

function CheckEmail(Email) {
 Filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
 return Filter.test(Email);
}


/* Form validating function. */
function RegisterUser() {
 if (	(this.Email.value == '') || 
	(this.Password.value == '') || 
	(this.Firstname.value == '') ) {
  alert('Przynajmniej jedno z wymaganych pól jest puste. Aby rejestracja się powiodła, wszystkie niezbędne wartości muszą być wprowadzone.');
  return false;
 }
 else if (this.Password.value != this.Password2.value) {
  alert('Pola "Hasło" i "Potwierdź hasło" nie są identyczne.');
  return false;
 }
 else if (!CheckEmail(this.Email.value)) {
  alert('Format adresu e-mail jest niepoprawny.');
  return false;
 } 
 return true;
}


function RegisterNewsletter() {
 if (!CheckEmail(this.Email.value)) {
  alert('Format adresu e-mail jest niepoprawny.');
  return false;
 } 
 else
 	return true;
}


-->
