<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

$s_w = 10; 
$s_h = 10;

?>
<script type="text/javascript" language=JavaScript>
// 엠파스 로긴 참고
var bReset = true;
function chkReset(f) 
{
    if (bReset) { if ( f.mb_id.value == '아이디' ) f.mb_id.value = ''; bReset = false; }
    document.getElementById("pw1").style.display = "none";
    document.getElementById("pw2").style.display = "";
}
</script>


<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
  <tr>
    <td width='<?=$s_w?>' height='<?=$s_h?>'><img src='<?=$outlogin_skin_path?>/img/h_neto1.gif' width='<?=$s_w?>' height='<?=$s_h?>' border='0'></td>
    <td background='<?=$outlogin_skin_path?>/img/h_neto2.gif' height='<?=$s_h?>'>    </td>
    <td><img src='<?=$outlogin_skin_path?>/img/h_neto3.gif'width='<?=$s_w?>' height='<?=$s_h?>' border='0'></td>
  </tr>
  <tr>
    <td background='<?=$outlogin_skin_path?>/img/h_neto1_1.gif' width='<?=$s_w?>'></td>
    <td align='center' bgcolor='#f1f1f1' height="24" align="center">
	<!-------타이틀------>
	<strong>MEMBER Login</strong>
	<!-----//타이틀------>
   </td>
    <td background='<?=$outlogin_skin_path?>/img/h_neto3_1.gif' width='<?=$s_w?>'></td>
  </tr>
  <tr>
    <td background='<?=$outlogin_skin_path?>/img/h_neto4.gif' width='<?=$s_w?>'></td>
    <td align='center' >	 
<!-- 로그인 전 외부로그인 시작 -->
		  <table cellpadding=0 cellspacing=0 border=0 align="center" width="100%">
          <form name="fhead" method="post" action="javascript:fhead_submit(document.fhead);" autocomplete="off">
          <input type="hidden" name="url" value="<?=$urlencode?>">
            <tr><td height="7" colspan="2"></td></tr>
            <tr><td align="center" colspan="2"><input name="mb_id" type="text" class=ed size="24" maxlength="20" required itemname="아이디" value='아이디' onMouseOver='chkReset(this.form);' onFocus='chkReset(this.form);'></td></tr>
            <tr><td id=pw1 align="center" colspan="2"><input type="text" class=ed size="24" maxlength="20" required itemname="비밀번호" value='비밀번호' onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td>
			  <td id=pw2 align="center" colspan="2" style='display:none;'><input name="mb_password" type="password" class=ed size="24" maxlength="20" itemname="패스워드" onMouseOver='chkReset(this.form);' onfocus='chkReset(this.form);'></td></tr>
            <tr><td height="7" colspan="2"></td></tr>
            <tr><td align="center"><input type="checkbox" name="auto_login" value="1" onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false; } }"><span style='font-family:Tahoma;font-size:8pt;color:#8a8a8a;'>ID저장</span></td>
			  <td align="center"><input type="image" src="<?=$outlogin_skin_path?>/img/login_button.gif" border=0></td>
			</tr>
            <tr><td colspan="2">&nbsp;&nbsp;<a href="javascript:win_password_forget();"><span style='font-family:Tahoma;font-size:8pt;color:#8a8a8a;'>아이디/비밀번호 찾기</span></a></td></tr>
            <tr><td colspan="2">&nbsp;&nbsp;<a href="<?=$g4[bbs_path]?>/register.php"><span style='font-family:Tahoma;font-size:8pt;color:#639933;'><b>회원가입</b></span></a></td></tr>
		  </form>
		  </table>
<!-------------//로그인내용끝--------->	
   </td>
    <td background='<?=$outlogin_skin_path?>/img/h_neto5.gif' width='<?=$s_w?>'></td>
  </tr>
  <tr>
    <td width='<?=$s_w?>' height='<?=$s_h?>'><img src='<?=$outlogin_skin_path?>/img/h_neto6.gif' width='<?=$s_w?>' height='<?=$s_h?>' border='0'></td>
    <td background='<?=$outlogin_skin_path?>/img/h_neto7.gif' height='<?=$s_h?>'></td>
    <td><img src='<?=$outlogin_skin_path?>/img/h_neto8.gif' width='<?=$s_w?>' height='<?=$s_h?>' border='0'></td>
  </tr>
</table>




<script language="JavaScript">
function fhead_submit(f)
{
    if (!f.mb_id.value)
    {
        alert("회원아이디를 입력하십시오.");
        f.mb_id.focus();
        return;
    }

    if (document.getElementById('pw2').style.display!='none' && !f.mb_password.value)
    {
        alert("패스워드를 입력하십시오.");
        f.mb_password.focus();
        return;
    }

    f.action = "<?=$g4[bbs_path]?>/login_check.php";
    f.submit();
}
</script>
<!-- 로그인 전 외부로그인 끝 -->
