window.onblur = function() {self.close();}
window.onload = function() {self.focus();}