<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<style>
#register_wrap {margin:0 auto;width:700px;padding:0;}
.register_top_line {width:100%;border:1px solid #555;}
#register_input {margin:0 auto;width:700px;}
.register_title {margin:20px 0;}
.register_title p {margin:0;padding:0;}
.register_title p span {font:normal 11px tahoma;color:#999;}
.register_jumin_left {float:left;text-align:right;width:160px;margin-left:20px;}
.register_jumin_left p {margin:0;padding:10px;}
.register_jumin_right p {margin:0;padding:5px;}
.register_textarea {clear:both;margin:10px 0}
.register_textarea textarea {background-color:#f9f9f9;padding:10px;}
.box_title {float:left;padding-left:15px;margin:5px 0;background:url('<?=$member_skin_path?>/img/box_title_fr.gif') no-repeat left;font:bold 14px dotum;letter-spacing:-1px}
.box_title2 {float:left;padding-left:15px;margin:5px 0;background:url('<?=$member_skin_path?>/img/box_title_fr2.gif') no-repeat left;font:bold 14px dotum;color:#d51212;letter-spacing:-1px}
.box_title3 {float:left;padding-left:15px;margin:5px 0;background:url('<?=$member_skin_path?>/img/box_title_fr3.gif') no-repeat left;font:bold 14px dotum;color:#2e63ab;letter-spacing:-1px}
.clr {clear:both;}
.blank {padding:10px;}
.line {clear:both;margin:10px auto;border-top:1px solid #ddd;padding:0}
.line2 {clear:both;border-top:1px solid #ddd;margin:10px 0;padding:0}
.bt_area {padding:20px;text-align:center;}
.center {text-align:center;}
</style>
<form name="fregister" method="POST" autocomplete="off">
<div id="register_wrap">
	<div class="register_title">
		<p><img src="<?=$member_skin_path?>/img/join_title.gif"></p>
		<p><span>회원으로 가입하시면, 유익한 커뮤니티와 다양한 서비스를 편리하게 이용하실 수 있습니다.</span></p>
	</div>
	<div class="line blank"></div>
	<div id="register_input">	
		<? if ($config[cf_use_jumin]) { // 주민등록번호를 사용한다면 ?>
		<div class="box_title">주민등록번호 입력</div>
		<div class="line2 clr"></div>
		<p class="font_s"> &nbsp;입력된 주민등록 번호는 중복가입을 막기위한 것으로 암호화되어 저장되므로 안심하셔도 좋습니다.</p>
		<div class="register_jumin_left">
			<p><span>이름</span></p>
			<p><span>주민등록번호</span></p>
		</div>
		<div class="register_jumin_right">
			<p><input name=mb_name itemname="이름" required minlength="2" nospace hangul class=ed></p>
			<p><input name=mb_jumin itemname="주민등록번호" required jumin minlength="13" maxlength=13 class=ed> <span  class="font_s">&nbsp;&nbsp;* 숫자 13자리 중간에 - 없이 입력하세요.</span></p>
		</div>
		<div class="blank"></div>
		<div class="blank"></div>
    <? } ?>
		
		<div class="box_title">회원가입약관</div>
		<div class="register_textarea">
			<p><textarea style="width: 98%" rows="10" readonly class="ed"><?=get_text($config[cf_stipulation])?></textarea></p>
			<p class="left"><input type=radio value=1 name=agree id=agree11>&nbsp;<label for=agree11>동의합니다.</label>
                &nbsp; <input type=radio value=0 name=agree id=agree10>&nbsp;<label for=agree10>동의하지 않습니다.</label></p>
		</div>
		<div class="clr blank"></div>
		<div class="box_title">개인정보취급방침</div>
		<div class="register_textarea">
					<p><textarea style="width: 98%" rows="10" readonly class="ed"><?=get_text($config[cf_privacy])?></textarea></p>
					<p class="left"><input type=radio value=1 name=agree2 id=agree21>&nbsp;<label for=agree21>동의합니다.</label>
                &nbsp; <input type=radio value=0 name=agree2 id=agree20>&nbsp;<label for=agree20>동의하지 않습니다.</label></p>
		</div>
		
	</div>

	<div class="bt_area"><img src="<?=$member_skin_path?>/img/bt_confirm.gif" border="0" style="cursor:pointer" onclick='return fregister_submit();' />&nbsp; <img src="<?=$member_skin_path?>/img/bt_back.gif" style="cursor:pointer;border:0" onclick="history.back()"></div>
</div>
</form>


<script type="text/javascript">
var f=document.fregister;

function fregister_submit() 
{
    var agree1 = document.getElementsByName("agree");
    if (!agree1[0].checked) {
        alert("회원가입약관의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
        agree1[0].focus();
        return false;
    }

    var agree2 = document.getElementsByName("agree2");
    if (!agree2[0].checked) {
        alert("개인정보취급방침의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
        agree2[0].focus();
        return false;
    }

    f.action = "./register_form.php";
    
	f.submit();
}

if (typeof(document.fregister.mb_name) != "undefined")
    document.fregister.mb_name.focus();
</script>
