<!--
	function loginstring() { 
		if (getCookie("Joins_LoginStatus") == "True" && getCookie("Joins_ValidLogin") == "True" ) {	
				 if (str_apply==''){
					str_login="<table width=190 cellpadding=0 cellspacing=0 border=0>";
					str_login=str_login+"<tr>";
					str_login=str_login+"<td width=11><img src=http://images.joins.com/event/login_01.gif width=11 height=105 border=0></td>";
					str_login=str_login+"<td width=168 valign=top>";

					str_login=str_login+"<table width=168 cellpadding=0 cellspacing=0 border=0>";
					str_login=str_login+"<tr><td background=http://images.joins.com/event/login_box01.gif width=168 height=34 border=0 style='padding-left:5px;'>";
					str_login=str_login+"<p style='margin-top:6px;'>";
					str_login=str_login+"<font style='font-size:10pt; color:#FFFFFF;'><b>"+getCookie2('MemArray','MemName')+"´Ô</b></font>";
					str_login=str_login+"<b style='width:50px;'></b><a href=http://login.joins.com/Logout.asp><font color=#F3F5BD><b>·Î±×¾Æ¿ô</b></font></a></td></tr>";
					str_login=str_login+"<tr><td height=33><img src=http://images.joins.com/event/arrow_blue.gif width=3 height=11 border=0 align=absmiddle hspace=10>";
					str_login=str_login+"<font color=#4762E9><b>Âü¿©ÇÑ ÀÌº¥Æ® : -</b></font></td></tr>";
					str_login=str_login+"<tr><td align=center colspan=3><img src=http://images.joins.com/event/dot_w159.gif width=159 height=1 border=0></td></tr>";
					str_login=str_login+"<tr><td height=33><img src=http://images.joins.com/event/arrow_red.gif width=3 height=11 border=0 align=absmiddle hspace=10>";
					str_login=str_login+"<font color=#800018><b>´çÃ·µÈ ÀÌº¥Æ® : -</b></font></td></tr>";
					str_login=str_login+"<tr><td><img src=http://images.joins.com/event/login_box02.gif width=168 height=4 border=0></td></tr>";
					str_login=str_login+"</table>";

					str_login=str_login+"</td>";
					str_login=str_login+"<td width=11><img src=http://images.joins.com/event/login_02.gif width=11 height=105 border=0></td>";
					str_login=str_login+"</tr>";
					str_login=str_login+"</table>";
				 }
				 else{
 					str_login=str_apply.replace("{{name}}", getCookie2('MemArray','MemName'));
				 }
		} else {				
			str_login = "<table width=190 cellpadding=0 cellspacing=0 border=0>";
			str_login=str_login+"<form name='frm_login' method='post' action='http://login.joins.com/LoginMain.asp' onsubmit='javascript:login_send(); return false;'>";
			str_login=str_login+"<tr>";
			str_login=str_login+"<td width=11><img src='http://images.joins.com/event/login_01.gif' width=11 height=105 border=0></td>";
			str_login=str_login+"<td width=168 valign=top>";

			str_login=str_login+"<table width=168 cellpadding=0 cellspacing=0 border=0>";
			str_login=str_login+"<tr><td colspan=3 background='http://images.joins.com/event/login_box01.gif' width=168 height=34 border=0 style='padding-left:5px;'><p style='margin-top:6px;'><a href='http://myjoins.joins.com/'><font style='color:#FFFFFF; font-weight:bold;'>¸¶ÀÌÁ¶ÀÎ½º</font></a><b style='width:40px;'></b><a href='http://myjoins.joins.com/register/member_gb.asp'><font style='color:#F3F5BD; font-weight:bold;'>È¸¿ø°¡ÀÔ</font></a></td></tr>";
			str_login=str_login+"<tr>";
			str_login=str_login+"<td width=55 height=33 align=right style='padding:3 5 0 0px;'>¾ÆÀÌµð</td>";
			str_login=str_login+"<td width=57><input type=text name='txtId' style='width:55px;'></td>";
			str_login=str_login+"<td width=54 align=left><input type=checkbox name='save_id' value='1' class=input_0><font style='color:#414E83; letter-spacing:-1px;'>IDÀúÀå</font></td>";
			str_login=str_login+"</tr>";
			str_login=str_login+"<tr><td align=center colspan=3><img src='http://images.joins.com/event/dot_w159.gif' width=159 height=1 border=0></td></tr>";
			str_login=str_login+"<tr>";
			str_login=str_login+"<td width=55 height=33 align=right style='padding:3 3 0 0px;'>ºñ¹Ð¹øÈ£</td>";
			str_login=str_login+"<td width=57><input type='password' name='txtPasswd' style='width:55px;'></td>";
			str_login=str_login+"<td width=54 align=left style='padding:0 0 0 5px;'><input type=image src='http://images.joins.com/event/login_bt.gif' width=38 height=16 style='border:0;'></td>";
			str_login=str_login+"</tr>";
			str_login=str_login+"<tr><td colspan=3><img src='http://images.joins.com/event/login_box02.gif' width=168 height=4 border=0></td></tr>";
			str_login=str_login+"</table>";

			str_login=str_login+"</td>";
			str_login=str_login+"<td width=11><img src='http://images.joins.com/event/login_02.gif' width=11 height=105 border=0></td>";
			str_login=str_login+"</tr>";

			str_login=str_login+"<input type='hidden' name='referer' value='http://event.joins.com/'>";
			str_login=str_login+"<input type=hidden name='SourceURL' value=''>";
			str_login=str_login+"<input type=hidden name='TargetURL' value=''>";
			str_login=str_login+"<input type=hidden name='Action' value=''>";
			str_login=str_login+"<input type=hidden name='Serverid' value=''>";
			str_login=str_login+"<input type=hidden name='FileExt' value=''>";

			str_login=str_login+"<input type='hidden' name='FromURL' value='J0001'>";
			str_login=str_login+"<input type='hidden' name='TmpStr1' value=''>";
			str_login=str_login+"<input type='hidden' name='TmpStr2' value=''>";
			str_login=str_login+"<input type='hidden' name='TmpStr3' value=''>";
			str_login=str_login+"<input type='hidden' name='LoginTime' value=''>";
			str_login=str_login+"<input type=hidden name='strMemStatus' value=''>";

			str_login=str_login+"<input type='hidden' name='FromURL' value=''>";
			str_login=str_login+"</form>";		
			str_login=str_login+"</table>";
		}
		return str_login;
	}
	
	function login_send() {
        //ID
        if (document.frm_login.txtId.value == "")  {
               alert("È¸¿ø ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
               document.frm_login.txtId.focus();
               return;
        }
		//ÆÐ½º¿öµå
        if (document.frm_login.txtPasswd.value == "")  {
               alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
               document.frm_login.txtPasswd.focus();
               return;
        }

		if (document.frm_login.save_id.checked==true){
		//ÄíÅ° ÀúÀåÇØ¾ßµÇ´Âµ¥....
			setCookie( "joinshome_id",document.frm_login.txtId.value, 15); 
		}
		else{
			var today = new Date();
			today.setTime(today.getTime() - 1000);
			document.cookie = 'joinshome_id=""; path=/; DOMAIN=event.joins.com; expires='+ today.toGMTString();
		}

		//document.frm_login.TargetURL.value=escape(document.location.href);
		document.frm_login.submit();

	}

	function setCookie( name, value, expiredays ) 
	{	
		var todayDate = new Date(); 
		todayDate.setDate( todayDate.getDate() + expiredays ); 
		document.cookie = name + "=" + escape( value ) + "; path=/; domain=event.joins.com; expires=" + todayDate.toGMTString() + ";" 
	} 

	function getCookie( name ) 
	{ 
        var nameOfCookie = name + "="; 
        var x = 0; 
        while ( x <= document.cookie.length ) 
        { 
                var y = (x+nameOfCookie.length); 
                if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
                                endOfCookie = document.cookie.length; 
                        return unescape( document.cookie.substring( y, endOfCookie ) ); 
                } 
                x = document.cookie.indexOf( " ", x ) + 1; 
                if ( x == 0 ) 
                        break; 
        } 
        return ""; 
	}

	function getCookie2(uName,uName2)		//ÄíÅ°¿­ Áß¿¡ uName2ÀÇ °ªÀ» ±¸ÇÑ´Ù 
	{
	var string = getCookie(uName);
	
	var flag = string.indexOf(uName2+'=');
	if (flag != -1) 
	{ 
		flag += uName2.length + 1
		end = string.indexOf('&', flag) 

		if (end == -1) end = string.length
		return unescape(string.substring(flag, end))
	}
	else
	{
		return ""
	}
}
//-->

