// function CheckSForm(){ if(!document.ks.username.value.length){ alert("Podaj adres email!"); document.ks.username.focus(); return false; } if(!document.ks.userpass.value.length){ alert("Podaj hasło!"); document.ks.userpass.focus(); return false; } document.ks.submit(); } function show_div(layer_ref, state) { if (document.all) { //IS IE 4 or 5 (or 6 beta) eval( "document.all." + layer_ref + ".style.display = state"); } if (document.layers) { //IS NETSCAPE 4 or below document.layers[layer_ref].display = state; } if (document.getElementById && !document.all) { hza = document.getElementById(layer_ref); hza.style.display = state; } } var reminder = false; function ShowReminder(){ if(reminder) show_div('reminderdiv', 'none'); else show_div('reminderdiv', 'block'); reminder = !reminder; } function Order(){ document.kosz.action.value='order'; document.kosz.submit(); } function OrderSend(){ document.register.akcja.value='buy'; // alert(document.register.akcja.value); document.register.submit(); } function CheckEmail(){ Wzor_email =/^[0-9a-zA-Z._-]+\@([0-9a-zA-Z-]+\.)+[0-9a-zA-Z]{2,4}$/; if(!Wzor_email.test(document.remind.email.value)){ alert('Musisz podać poprawny adres email'); document.remind.email.focus(); return(false); } document.remind.submit(); } function ShowWysylka(){ if(document.register.adres_wys.checked==false) show_div('wysylkadiv', 'none'); else show_div('wysylkadiv', 'block'); } function ShowFaktura(){ if(document.register.faktura.checked==false) show_div('fakturadiv', 'none'); else show_div('fakturadiv', 'block'); } function ShowFakturaAddr(){ if(document.register.fakturaaddr.checked==false) show_div('fakturaadrdiv', 'none'); else show_div('fakturaadrdiv', 'block'); }