// open new window for print function print(url_add) { window.open(url_add,'Drukuj', 'top=100,left=100,height=800,width=1000,location=no,resizable=no,scrollbars=yes,status=no'); } function report(myform) { if (! window.focus)return true; var d = new Date(); windowname = d.getTime(); window.open('', windowname, 'top=100,left=100,height=800,width=1000,location=no,resizable=no,scrollbars=yes,status=no'); myform.target=windowname; return true; } // sprawdzenie wartosci czy jest liczba calkowita function checkNumberOf() { if (isNaN(document.getElementById('BasketInput').value)) { alert('Ilość może byc tylko liczbą całkowitą. Wprowadź poprawnie ilość i spróbuj ponownie!'); return false; } else if (document.getElementById('BasketInput').value == 0 || document.getElementById('BasketInput').value > 50) { alert('Ilość nie może być zerem (0) oraz większa niż 50. Wprowadź poprawnie ilość i spróbuj ponownie!'); return false; } else { return true; } } // blok w slowniku tekstu function showBlock(Id) { var oferta = document.getElementById('block' + Id); if(oferta.style.display == 'none') oferta.style.display = 'block'; else oferta.style.display = 'none'; } // potwierdzenie usuniecia function confirmDelete() { return confirm("Czy chcesz usunąć wybraną pozycję?"); } // potwierdzenie odebrania function confirmRealize() { return confirm("Jeśli potwierdzasz odbiór towaru, kliknij OK ;)"); } //potwierdzenie czyszczenia koszyka function confirmClear() { return confirm("Czy napewno chcesz wyczyścić koszyk?"); } // external links - nowe okno function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i