function mailus(style){document.write(''+"biuro@sunrisesystem.pl"+'<\/a>')} function ss_$(el){return document.getElementById(el)} function ss_isemail(str) {return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(str)} function ss_trim(str){return str.replace(/^\s*|\s*$/g,"")} function ss_send_form(form){ if (ss_trim(ss_$('ss_nf').value)=='') alert('Proszę podać nazwę firmy.') else if (ss_trim(ss_$('ss_www').value)=='') alert('Proszę podać adres www.') else if (ss_trim(ss_$('ss_imie').value)=='') alert('Proszę podać imię.') else if (ss_trim(ss_$('ss_nazwisko').value)=='') alert('Proszę podać nazwisko.') else if (ss_trim(ss_$('ss_email').value)=='') alert('Proszę podać adres e-mail.') else if (ss_trim(ss_$('ss_telefon').value)=='') alert('Proszę podać numer telefonu.') else if (!ss_isemail(ss_$('ss_email').value)) alert('Podany adres e-mail jest nieprawidłowy') else form.submit() }