function check_login(f)
{
	if(TRIM(f.id.value)=="")
	{
		alert("Enter your ID!!")
		f.id.focus()
		return
	}
	if(TRIM(f.pass.value)=="")
	{
		alert("Enter your password!!")
		f.pass.focus()
		return
	}
	f.submit()
}

function getCookie(theName)
{
	theName += "=";	// =À» Ãß°¡ÇØ¼­ °Ë»öÀ» µ½´Â´Ù
	theCookie = document.cookie+";";	// °Ë»ö½Ã ÃÖÁ¾Ç×¸ñ¿¡¼­ -1ÀÌ µÇ´Â °ÍÀ» Á¦¿ÜÇÑ´Ù
	start = theCookie.indexOf(theName);	// ÁöÁ¤µÈ ÀÌ¸§À» °Ë»öÇÑ´Ù
	if (start != -1)
	{
		end = theCookie.indexOf(";",start);
		return unescape(theCookie.substring(start+theName.length,end));
	}
	return false;
}

function member_login_checkbox()
{
	document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=205 HEIGHT=130 bgcolor=#EFEBDE STYLE="FONT:9PT VERDANA;COLOR:#595959;">');
	document.write('<TR>');
	document.write('<TD height=23 colspan=3><img src=/images/loginbox/upbar.gif border=0></TD>');
	document.write('</TR>');

	if(!_sess_check2)
	{
		_sess_saveid=getCookie("WOORIMILID")
		document.write('<form name=login onsubmit="check_login(this);return false;" method=post action=/member/member.asp><input type=hidden name=run value=login>')
		document.write('<TR>');
		document.write('<TD height=42 width=33><img src=/images/loginbox/idpw_txt.gif border=0></TD>');
		document.write('<TD width=96><input type=text name=id style="width:96px;height:18px;border:1px solid #BDBEBD" value="'+_sess_saveid+'"><BR><input type=password name=pass style="width:96px;height:18px;border:1px solid #BDBEBD"></TD>');
		document.write('<TD width=76 align=center><input type=image src=/images/loginbox/login_btn.gif border=0></TD>');
		document.write('</TR>');
		document.write('<TR>');
		document.write('<TD height=3 colspan=3></TD>');
		document.write('</TR>');
		document.write('<TR>');
		document.write('<TD height=38 colspan=3 style="padding-right:10px;font:9pt verdana;" align=right valign=top><input type=checkbox name=idsave>¾ÆÀÌµðÀúÀå<BR><img src=/images/blank.gif height=7><BR><a href=/member/>È¸¿ø°¡ÀÔ</a><img src=/images/blank.gif width=10><a href=/member/idfind.asp>¾ÆÀÌµð/ÆÐ½º¿öµå ºÐ½Ç</a></TD>');
		document.write('</TR>');
		document.write('</form>');
		document.write('<TR>');
		document.write('<TD height=7 colspan=3></TD>');
		document.write('</TR>');
	}
	else
	{
		document.write('<TR>');
		document.write('<TD height=95 align=center>Hi !<br><B>'+_sess_memberid+'</B>('+_sess_memberid+') ´Ô!!');
		document.write('<P><a href="/member/modify.asp">Modify</a> <a href="/member/logout.asp">Log out</a>');
		document.write('</TD>');
		document.write('</TR>');
	}
	document.write('<TR>');
	document.write('<TD height=12 colspan=3><img src=/images/loginbox/bottombar.gif border=0></TD>');
	document.write('</TR>');
	document.write('</TABLE>');
}
