<!--#include virtual = "/common/lib/dbcon.asp" -->
<!--#include virtual = "/common/lib/func.asp" -->

<!--#include file = "config.asp" -->

<%

' 파라미터정보 ***********************************************
idx		= InputValue(request("idx"))
' ************************************************************
If Not( IsNumeric(idx) ) Then
	Call goMessage_board("잘못된 페이지 요청입니다.", "/", "", "", a_num)
End if

' 레코드필드
R_Fields = "ck_chk, ck_val, subject, content"

R_tablename_str = "popup"

R_WHERE_str = " where idx= '"&idx &"'"

Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str)

if ck_val = "" Then ck_val = 1

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
	<meta name="robots" content="noindex, nofollow" />
	<title><%=subject%></title>
	<link rel="Stylesheet" type="text/css" href="/manager/common/css/sub_layout.css" />
	<link rel="Stylesheet" type="text/css" href="/manager/common/css/all.css" />
	<script type="text/javascript" src="/common/js/common_design.js"></script>

	<script type="text/javascript" src="/common/js/fusioncharts.js"></script>
	<script type="text/javascript" src="/common/js/common_dev.js"></script>
	<script type="text/javascript">
		function setCookie(){
			var expire = new Date();
			expire.setDate(expire.getDate() + <%=ck_val%> );
			document.cookie = "pop<%=idx%>=<%=ck_val%>; expires=" +  expire.toGMTString()+ "; path=/";
		}

		function closeWin(){

			if (document.getElementById('next_close').checked == true ){
				setCookie();
			}

			self.close();
		}

		
	</script>

</head>
<body>

<div>

	<!--  -->
	<div>
		<%=content%>
	</div>
	
	
	<%if ck_chk = "Y" then%> 
	<div class="popup">
		<div class="popup_right">
			<ul>
			<li><input type="checkbox" id="next_close" value="Y" /></li>
			<li class="pt5 pr7">다음에 창 열지 않기</li>
			<li class="button pr5"><input type="button" value="닫기" onclick="closeWin();" class="ct_bt01" tabindex="<%=getTabIndex()%>" /></li>
			</ul>
		</div>
	</div>
	<% End If %>


</div>





</body>
</html>