function viewContents(kind, idx, flag_adult) { if(flag_adult == "1") { if(!m_id) { alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä."); return; } var is_adult = ""; if(is_adult == "0") { alert("¼ºÀÎ ÀÎÁõÈÄ ÀÌ¿ëÇϼ¼¿ä."); windowOpenCenter('/mypage/nameCheck.pop.htm', 'nameCheckPop', '470', '345'); return; } else if(is_adult == "2") { alert("¹Ì¼º³âÀÚ´Â ¼ºÀÎÄÁÅÙÃ÷¿¡ Á¢±Ù ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); return; } else if(is_adult == "3") { alert("¼ºÀÎÀÎÁõ ÇØÁ¦ÁßÀÔ´Ï´Ù.\n\nÁ¤º¸¼öÁ¤ ÆäÀÌÁö¿¡¼­ ÀçÀÎÁõ ÇØÁÖ¼¼¿ä."); return; } } if(kind == "2") { alert("»èÁ¦ ¶Ç´Â °Ô½Ã±â°£ÀÌ ¸¸·áµÈ ÄÁÅÙÃ÷ÀÔ´Ï´Ù."); return; } else if(kind == "0") { windowOpenCenter('/contents/warning.htm?idx=' + idx, 'contentsView', '375', '310', 'scrollbars=1'); } else { //windowOpenCenter('/contents/view.htm?idx=' + idx, 'contentsView', '920', '850', 'scrollbars=1'); // ºÎ¸ðâ°ú °°Àº È­¸é¿¡¼­ »õâ¿­±â //var x = window.screenLeft; var y = window.screenTop; var width = 885; var height = window.screen.height; //var left = x + ((document.body.offsetWidth - width) / 2); var left = 0; var top = y + ((document.body.offsetHeight - height) / 2); var windows=window.open('/contents/view.php?idx=' + idx,'contentsView_Smartfile','width = ' + width + 'px, height = ' + height + 'px, top = ' + top + 'px, left = ' + left + 'px, scrollbars = 1, resizable = 0, status = 0'); windows.focus(); } } function do_cmt_del(idx) { if(confirm("´ñ±ÛÀ» »èÁ¦ ÇϽðڽÀ´Ï±î?")) //$("hiddenAction").src = "/contents/request_cmt_del.php?idx=" + idx; hiddenAction.location.href = "/contents/request_cmt_del.php?idx=" + idx; } function moveCategory1(category1) { if(category1 == "ADT") { if(!m_id) { alert("·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä."); return; } var is_adult = ""; if(is_adult == "0") { alert("¼ºÀÎ ÀÎÁõÈÄ ÀÌ¿ëÇϼ¼¿ä."); windowOpenCenter('/mypage/nameCheck.pop.htm', 'nameCheckPop', '470', '345'); return; } else if(is_adult == "2") { alert("¹Ì¼º³âÀÚ´Â ¼ºÀÎÄÁÅÙÃ÷¿¡ Á¢±Ù ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); return; } else if(is_adult == "3") { alert("¼ºÀÎÀÎÁõ ÇØÁ¦ÁßÀÔ´Ï´Ù.\n\nÁ¤º¸¼öÁ¤ ÆäÀÌÁö¿¡¼­ ÀçÀÎÁõ ÇØÁÖ¼¼¿ä."); return; } } movePage("/contents/?category1=" + category1); }