function check_and_go() { //dzial -- select if( document.kontakt['kontakt[dzial][]'].selectedIndex == 0 ) { alert( 'pole \'dział z którym chcesz się skontaktować\' jest wymagane' ) ; return ; } //firma -- text //imie -- text if( document.kontakt['kontakt[imie]'].value == '' ) { alert( 'pole \'imię\' jest wymagane' ) ; return ; } //nazwisko -- text if( document.kontakt['kontakt[nazwisko]'].value == '' ) { alert( 'pole \'nazwisko\' jest wymagane' ) ; return ; } //email -- text //telefon -- text if( document.kontakt['kontakt[telefon]'].value == '' ) { alert( 'pole \'telefon\' jest wymagane' ) ; return ; } //sposob_kontaktu -- checkbox //zrodlo -- select //tresc -- textarea if( document.kontakt['kontakt[tresc]'].value == '' ) { alert( 'pole \'treść wiadomości\' jest wymagane' ) ; return ; } document.kontakt.submit() }