function toggleDetails(btn) { if (dialogHeight == "200px") { dialogHeight = 350px; btn.value = "Ukryj szczegóły" } else { dialogHeight = 200px; btn.value = "Pokaż szczegóły" } }