function del(){ var element = document.getElementById('popup_box_container')[0]; element.parentNode.removeChild(element); }