		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 gogogo() {
			var gourl;
			gourl = escape(location.href);
			window.location="http://www.donga.com/members/login.php?gourl=" + gourl;
		}
		function getout() {
			gourl = escape(location.href);
			window.location= "http://www.donga.com/members/logout.php?gourl=" + gourl;
		}

		function books_loginarea () {
			dongausercookie = getCookie("dongauserid");
			gourl = escape(location.href);
			loginhtml = "";
			loginhtml +="<img src='http://image.donga.com/contents/booksdonga/icon_log.gif' width='7' height='5' align='absmiddle'><span class='f11'><a href='#' onClick='gogogo();'>·Î±×ÀÎ</a></span>¡¡";
			loginhtml +="<img src='http://image.donga.com/contents/booksdonga/icon_log.gif' width='7' height='5' align='absmiddle'><span class='f11'><a href='http://www.donga.com/members/mregist.php'>È¸¿ø°¡ÀÔ</a></span>¡¡";
			loginhtml +="<img src='http://image.donga.com/contents/booksdonga/icon_log.gif' width='7' height='5' align='absmiddle'><span class='f11'><a href='http://www.donga.com/members/midnpass.php'>ID/ºñ¹øÃ£±â</a></span>";

			logouthtml = "";
			logouthtml +="<img src='http://image.donga.com/contents/booksdonga/smail.gif'><span class='f11'><b>"+dongausercookie+"</b></span>&nbsp;";
			logouthtml +="<img src='http://image.donga.com/contents/booksdonga/icon_log.gif' width='7' height='5' align='absmiddle'><span class='f11'><a href='#' onClick='getout()'>·Î±×¾Æ¿ô</a></span>¡¡";
			logouthtml +="<img src='http://image.donga.com/contents/booksdonga/icon_log.gif' width='7' height='5' align='absmiddle'><span class='f11'><a href='http://www.donga.com/members/mupdate.php'>È¸¿øÁ¤º¸¼öÁ¤</a></span>&nbsp;";


			if(getCookie("dceid")) {
				document.write(logouthtml);
			} else {
				document.write(loginhtml);
			}
		}