var dialog1=document.getElementById("zvonok"); if (dialog1.dialog('isOpen')) alert('true'); else alert('false');