<!--

function SetCookie(name,value,expireday){
	var pop_today = new Date();
	//alert(pop_today.toGMTString());
	pop_today.setDate(pop_today.getDate() + expireday);
	//alert(pop_today.toGMTString());
	document.cookie = name + "=" + escape(value) + "; path=/; expires=" + pop_today.toGMTString() + ";";
}

function win_close(GoUrl,strdiv,strchk){
//	alert(strchk);
	if(strchk !="")
	{
		if(document.getElementById(strchk).checked == true)	//Ã¼Å©¹Ú½º »ç¿ë¾ÈÇÒ¶ó¸é ÀÌÁÙ¸¸ ÁÖ¼®Ã³¸®
	//		alert("Ã¼Å©");
			SetCookie(strdiv,strdiv,1);
	}
	
	if(GoUrl != "")
	{
		location.href = GoUrl;	//ºÎ¸ðÃ¢ ¹Ù²î´Â°÷
	}

	document.getElementById(strdiv).style.display = "none";
}

	function e_texts(str_idx,str)
	{
		var Event_Text = "";
		var Event_Link = new Array();	
		var r = 0;
		var idx;
		r = parseInt(str_idx.substr(9,4));
		idx = r;
		//alert(str_idx.substr(9,4));
		//alert(r);
		switch(str_idx)
		{
				case "Event_0026":	//½Å±ÔÈ¸¿ø ÆË¾÷/Á¦ÈÞ»ç ÆË¾÷
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop_v2.asp?goindx=1");
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop_v2.asp?goindx=2");
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop_v2.asp?goindx=3");
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop_v2.asp?goindx=4");
						Event_Text = Event_Text + "<table width='300' border='0' cellspacing='0' cellpadding='0'>";						
						Event_Text = Event_Text + "<tr><td colspan='2'><img src='http://img.halfclub.com/Images_Web/Popup/cooperatepop-1025_01.gif' width='350' height='41' /></td></tr>";
						Event_Text = Event_Text + "<tr><td colspan='2'><img src='http://img.halfclub.com/Images_Web/Popup/cooperatepop-1025_02.jpg' width='350' height='200' border='0' usemap='#Map026_1' /></td></tr>";
						Event_Text = Event_Text + "<tr><td colspan='2'><img src='http://img.halfclub.com/Images_Web/Popup/cooperatepop-1025_03.gif' width='350' height='251' border='0' usemap='#Map026_2' /></td></tr>";
						Event_Text = Event_Text + "<TR><TD width=150 height=30 align=left bgColor=#000000 style='PADDING-LEFT: 10px'><FONT style='FONT-WEIGHT: normal; FONT-SIZE: 12px; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal' color=#ffffff>¿À´ÃÀº ±×¸¸º¸±â</FONT><FONT color=#ffffff> <INPUT onClick=\"win_close('','"+str_idx+"','chk_"+str_idx+"');\" type=checkbox name='chk_"+str_idx+"'></FONT></TD>";
						Event_Text = Event_Text + "<TD align=right bgColor=#000000><IMG style='CURSOR: hand' onClick=\"win_close('','"+str_idx+"','');\" height=30 src='http://img.halfclub.com/Images_Web/Popup/popup_close.gif' width=48 border=0 /></TD></TR></table>";
						Event_Text = Event_Text + "<map name='Map026_1' id='Map026_1'>";
						Event_Text = Event_Text + "<area shape='rect' coords='8,4,342,193' href='"+Event_Link[idx+0]+"' onfocus='this.blur()' />";
						Event_Text = Event_Text + "</map>";
						Event_Text = Event_Text + "<map name='Map026_2' id='Map026_2'>";
						Event_Text = Event_Text + "<area shape='rect' coords='4,3,345,82' href='"+Event_Link[idx+1]+"' onfocus='this.blur()' />";
						Event_Text = Event_Text + "<area shape='rect' coords='5,83,346,162' href='"+Event_Link[idx+2]+"' onfocus='this.blur()' />";
						Event_Text = Event_Text + "<area shape='rect' coords='4,163,345,242' href='"+Event_Link[idx+3]+"' onfocus='this.blur()' />";
						Event_Text = Event_Text + "</map>";
						break;
				case "Event_0027":	//º£½ºÆ®¹ÙÀÌ¾î ¹Ù·Î°¡±â, Áï½ÃÇÒÀÎ 5% ÆË¾÷ (2011-03-14~04.13)
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop.asp?goindx=1");
						Event_Text = Event_Text + "<table width='719' border='0' cellspacing='0' cellpadding='0'>";
						Event_Text = Event_Text + "<tr><td colSpan=2><img src='http://img.halfclub.com/Images_Web/Joins/110310_bestbuyer.jpg' width='719' height='130' border='0' usemap='#Map024' /></td></tr>";
						Event_Text = Event_Text + "<TR><TD width=150 height=30 align=left bgColor=#000000 style='PADDING-LEFT: 10px'><FONT style='FONT-WEIGHT: normal; FONT-SIZE: 12px; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal' color=#ffffff>¿À´ÃÀº ±×¸¸º¸±â</FONT><FONT color=#ffffff> <INPUT onClick=\"win_close('','"+str_idx+"','chk_"+str_idx+"');\" type=checkbox name='chk_"+str_idx+"'></FONT></TD>";
						Event_Text = Event_Text + "<TD align=right bgColor=#000000><IMG style='CURSOR: hand' onClick=\"win_close('','"+str_idx+"','');\" height=30 src='http://img.halfclub.com/Images_Web/Popup/popup_close.gif' width=48 border=0 /></TD></TR></table>";
						Event_Text = Event_Text + "</map>";
						break;
				case "Event_0028":	//³×ÀÌ¹ö,´ÙÀ½ ¹Ù·Î°¡±â, Áï½ÃÇÒÀÎ 5% ÆË¾÷ (2011.09.19 ~ 30)
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop.asp?goindx=1");
						Event_Text = Event_Text + "<table width='719' border='0' cellspacing='0' cellpadding='0'>";
						Event_Text = Event_Text + "<tr><td colSpan=2><img src='http://img.halfclub.com/Images_Web/Joins/110615_naverdaum.jpg' width='719' height='130' border='0' usemap='#Map024' /></td></tr>";
						Event_Text = Event_Text + "<TR><TD width=150 height=30 align=left bgColor=#000000 style='PADDING-LEFT: 10px'><FONT style='FONT-WEIGHT: normal; FONT-SIZE: 12px; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal' color=#ffffff>¿À´ÃÀº ±×¸¸º¸±â</FONT><FONT color=#ffffff> <INPUT onClick=\"win_close('','"+str_idx+"','chk_"+str_idx+"');\" type=checkbox name='chk_"+str_idx+"'></FONT></TD>";
						Event_Text = Event_Text + "<TD align=right bgColor=#000000><IMG style='CURSOR: hand' onClick=\"win_close('','"+str_idx+"','');\" height=30 src='http://img.halfclub.com/Images_Web/Popup/popup_close.gif' width=48 border=0 /></TD></TR></table>";
//						Event_Text = Event_Text + "<map name='Map024' id='Map024'>";
//						Event_Text = Event_Text + "<area shape='rect' coords='264,107,401,395' href='"+Event_Link[idx+0]+"' onfocus='this.blur()' />";
//						Event_Text = Event_Text + "<area shape='rect' coords='7,108,255,396' href='"+Event_Link[idx+1]+"' onfocus='this.blur()' />";
//						Event_Text = Event_Text + "<area shape='rect' coords='6,106,261,328' href='"+Event_Link[idx+2]+"' onfocus='this.blur()' />";
//						Event_Text = Event_Text + "</map>";
						break;
				case "Event_0029":	// ´ÙÀ½½æ³×ÀÏ ÇÒÀÎ ÀÌº¥Æ® 5% Áï½ÃÇÒÀÎ( 2011.09.19 ~ 25 (ÃßÈÄ ¿¬Àå) )
						Event_Link[r++] = new Array("http://www.boribori.co.kr/joins/popup/joins_pop.asp?goindx=1");
						Event_Text = Event_Text + "<table width='719' border='0' cellspacing='0' cellpadding='0'>";
						Event_Text = Event_Text + "<tr><td colSpan=2><img src='http://img.halfclub.com/Images_Web/Joins/110919_daum_01.jpg' width='719' height='130' border='0' usemap='#Map024' /></td></tr>";
						Event_Text = Event_Text + "<TR><TD width=150 height=30 align=left bgColor=#000000 style='PADDING-LEFT: 10px'><FONT style='FONT-WEIGHT: normal; FONT-SIZE: 12px; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal' color=#ffffff>¿À´ÃÀº ±×¸¸º¸±â</FONT><FONT color=#ffffff> <INPUT onClick=\"win_close('','"+str_idx+"','chk_"+str_idx+"');\" type=checkbox name='chk_"+str_idx+"'></FONT></TD>";
						Event_Text = Event_Text + "<TD align=right bgColor=#000000><IMG style='CURSOR: hand' onClick=\"win_close('','"+str_idx+"','');\" height=30 src='http://img.halfclub.com/Images_Web/Popup/popup_close.gif' width=48 border=0 /></TD></TR></table>";
						break;
		}
		return Event_Text;
	}
//-->			

