OLDBOY/skin/board/stock_schedule_dividend/view/view.script.php
<script>
// 게시글 삭제 확인
function del(href) {
    if(confirm("한번 삭제한 자료는 복구할 수 없습니다.\n\n정말 삭제하시겠습니까?")) {
        document.location.href = href;
    }
}

// 이미지 리사이즈 팝업
function image_window(img) {
    var w = img.naturalWidth;
    var h = img.naturalHeight;
    var win = window.open("", "image_window", "width="+w+",height="+h+",scrollbars=1,resizable=1");
    var doc = win.document;
    doc.open();
    doc.write("<html><body style='margin:0; background:#000;' onclick='self.close()'><img src='"+img.src+"' style='max-width:100%;'></body></html>");
    doc.close();
}

// 게시글 이동/복사 팝업
function board_move(href) {
    window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
}

$(function() {
    $(".View-Body-Inner img").viewimageresize();
});
</script>