function Div_getCookie(name)
{ 
	var Found = false
	var start, end 
	var i = 0 

	// cookie ¹®ÀÚ¿­ ÀüÃ¼¸¦ °Ë»ö 
	while(i <= document.cookie.length)
	{ 
		start = i 
		end = start + name.length

	// name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é
		if(document.cookie.substring(start, end) == name)
		{ 
			Found = true
			break
		}
	
		i++
	} 

	// name ¹®ÀÚ¿­À» cookie¿¡¼­ Ã£¾Ò´Ù¸é 
	if(Found==true)
	{ 
		start=end+1 
		end=document.cookie.indexOf(";",start) 
		
		// ¸¶Áö¸· ºÎºÐÀÌ¶ó´Â °ÍÀ» ÀÇ¹Ì
		if(end< start) 
			end = document.cookie.length 
		
		// name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù. 
		return document.cookie.substring(start,end) 
	}
	 
	// Ã£Áö ¸øÇß´Ù¸é 
	return "" 
}

function closeBan(num, kind)
{
	Div_setCookie( kind+"_banner", "ok" , 1);  
	
	div_banner.style.display = "none";
}

function close_Ban()
{
	div_banner.style.display = "none";
}

function Div_setCookie(name, value, expiredays)
{ 
	var todayDate = new Date(); 
	todayDate.setDate(todayDate.getDate() + expiredays); 
	document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 
