function comment(id) { var page = "/comment.php?comment_id=" + id + "&comment_popup=true"; popwin = window.open(page,"","width=460,height=500,scrollbars,resizable") popwin.focus(); } document.open(); document.write("[ No comments ]"); document.close();