// 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:
function cols58() { var i; document.write(''); for(i=1;i<=58;i++) document.write(''); document.write(''); }; function dw(url, width, height, t , description) { width += 0; height += 0; // generowanie losowej nazwy okna: var name; name = Math.round (Math.random() * 1000000 ); NewWindow = window.open ('', name, 'width='+width+', height='+height+', resizable=0, status=0, scrollbars=0, menubar=0 toolbar=0'); NewWindow.document.writeln(''); NewWindow.document.writeln(''); NewWindow.document.writeln(''); NewWindow.document.writeln(''+t+''); NewWindow.document.writeln(''); //NewWindow.document.writeln(''); //NewWindow.document.writeln(''+description+''); NewWindow.document.writeln(''); NewWindow.document.writeln('Zamknij to okno'); NewWindow.document.writeln('
'); NewWindow.document.writeln(''); NewWindow.document.writeln(''); }; function dw_scroll(url, width, height, t , description) { width += 0; height += 0; // generowanie losowej nazwy okna: var name; name = Math.round (Math.random() * 1000000 ); NewWindow = window.open ('', name, 'width='+width+', height='+height+', resizable=1, status=0, scrollbars=1, menubar=0 toolbar=0'); NewWindow.document.writeln(''); NewWindow.document.writeln(''); NewWindow.document.writeln(''); NewWindow.document.writeln(''+t+''); NewWindow.document.writeln(''); NewWindow.document.writeln(''); NewWindow.document.writeln('
'); NewWindow.document.writeln('Kliknij aby zamknąć to okno'); NewWindow.document.writeln('
'); NewWindow.document.writeln(''+description+''); NewWindow.document.writeln('
'); NewWindow.document.writeln(''); NewWindow.document.writeln(''); };