function setFocus() { document.querybox.kata.focus(); document.querybox.kata.select(); } function footnote(lang, number){ lebar = screen.width * 0.30; panjang = screen.height * 0.20; kiri = screen.width - lebar - 30; // - (lebar / 2); atas = (screen.height * 0.5); child = window.open( './footnote.php?lang='+lang+'&no='+number, 'Footnote','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' +lebar+',height='+panjang+',left='+ kiri +',top='+atas ); child.focus(); }