<%
/**
 * <pre>
 * @Class Name : selectMemberJoiningInfo.jsp
 * 
 * @Description : 회원가입 이용약관
 * 
 * 
 * @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
 *
 * </pre>
 *
 * @ ------------    --------    ---------------------------
 * @ 수정일                     수정자             수정내용
 * @ ------------    --------    ---------------------------
 * @ 2021. 7. 12.    JSYOO       최초 생성
 *
 * 
 * @author 이씨플라자 * DIGITALSHIP JSYOO
 * @since 2021. 7. 12.
 * @version 1.0
 *
 */
 %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Insert title here</title>
<script>
function snsCertForm(){
	if(!(document.getElementsByName('agree')[0].checked))
	{
		alert("이용약관에 동의해주세요.");
		document.termsForm.agree[0].focus()
		return false;
	}
	if(!(document.getElementsByName('agree')[1].checked))
    {
        alert("개인정보처리정책에 동의해주세요.");
        document.termsForm.agree[1].focus()
        return false;
    }
	location.href="${pageContext.request.contextPath}/member/insertMemberInfoForm.do";
}
</script>
</head>
<body>
<div style="width:500px;">
    <form id="termsForm" name="termsForm">  
	    <p1><c:out value="${termTitle}" escapeXml="false"/></p1>
		<textarea style="height:200px;width:500px;"><c:out value="${termContent}" escapeXml="false"/></textarea>
		<br><div style="float: right;"><input type="checkbox" name="agree"  >동의</div>
		<p1><c:out value="${privacyTitle}" escapeXml="false"/></p1>
	    <textarea style="height:200px;width:500px;"><c:out value="${privacyContent}" escapeXml="false"/></textarea>
	    <br><div style="float: right;"><input type="checkbox" name="agree"  >동의</div>
	    <br><br><input type="button" value="다음" onclick="snsCertForm();"  style="float: right;">
    </form>
</div>
</body>
</html>