function delete_options() { var k = document.getElementById('drop_down1'); while (k.childNodes.length) k.removeChild(k.firstChild) }