function opensmallwindow(w, h) { if (window.smallwindow) {smallwindow.close();} smallwindow = window.open('', 'smallwindow', 'width='+w+', height='+h+', toolbar=no, scrollbars=yes') smallwindow.focus(); } function openimgwindow(w, h) { if (window.imgwindow) {imgwindow.close();} imgwindow = window.open('', 'imgwindow', 'width='+w+', height='+h+', toolbar=no, scrollbars=no') imgwindow.focus(); } function openhelpwindow(w, h) { if (window.helpwindow) {helpwindow.close();} helpwindow = window.open('', 'helpwindow', 'width='+w+', height='+h+', toolbar=no, scrollbars=yes') helpwindow.focus(); } function se(a,b) { window.location.href = 'mailto:'+a+'@'+b+'.pl'; } function validateform(v) { for(var i=0; i 0) { if (nip.length != 13) { alert('Nieprawidłowy format numeru NIP. Wpisz prawidłowy numer NIP lub pozostaw puste pole.'); document.f.elements['nip'].focus(); return false; } nip = nip.toString().replace(/\-/g,''); if (nip.length != 10) { alert('Nieprawidłowy format numeru NIP. Wpisz prawidłowy numer NIP lub pozostaw puste pole.'); document.f.elements['nip'].focus(); return false; } if (isNaN(nip)) { alert('Numer NIP musi być liczb±. Wpisz prawidłowy numer NIP lub pozostaw puste pole.'); document.f.elements['nip'].focus(); return false; } } return true; } function p(x) { return x.toString().replace(/\,/,'.'); } function checkext(name) { var ext = document.f.elements[name].value; if (ext.length > 0) { ext = ext.substring(ext.length-3,ext.length); ext = ext.toLowerCase(); if(ext != 'jpg') { alert('Akceptowane s± wył±cznie pliki JPG.'); return false; } else { return true; } } return true; } function _clear() { for (i = document.f.selout.length; i > 0; i--) { document.f.selout.options[i-1] = null } for (i = document.f.elements['selin[]'].length; i > 0; i--) { document.f.elements['selin[]'].options[i-1] = null } } function _newoutoption(selvalue) { selaccept = 1; for (i=0; i