// weryfikacja adresu e-mail: var regEmail = /^.+\@.+\..+$/; function checkform ( form ) { var mail = form.Email.value; if (mail == "") { alert( "Podaj swój adres e-mail." ); form.Email.focus(); return false ; } if (! regEmail.test (mail)) { alert( "Podaj poprawny adres e-mail." ); form.Email.focus(); return false ; } return true ; } //przykład uzycia: