function need_login2(target, go_url)
{
    alert("·Î±×ÀÎ ÈÄ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
	location.href="/membership/login.asp";
	return false;
}
function need_login(target, go_url)
{
    if (target == null) target=document;
    if (go_url == null) go_url ='';
//    if ( confirm ( "·Î±×ÀÎÀ» ÇÏ½Å ÈÄ ÀÌ¿ëÇØÁÖ½Ê½Ã¿À. \n\nÈ®ÀÎÀ» ´©¸£½Ã¸é ·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù." ) ){
//        target.location.href='/membership/login.asp?reurl=' + go_url;
//        return true;
//    }
//    else
//        return false;
    alert("·Î±×ÀÎ ÈÄ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
	return false;
}
/*
function resizewindow()
{
	maintable_size=930;
	resize_size=document.body.clientWidth;

	if(resize_size){
		document.all.apDiv2.style.display="none";
	}else{
		document.all.apDiv2.style.display="block";
		document.all.apDiv2.style.left=(resize_size/2)+400+2;
	}
}
*/

function go_hri()
{
	window.open("http://www.hri.co.kr","hri");
}
function go_cyLearn()
{
	window.open("http://www.cy-learn.co.kr","cyLearn");
}
function goto_agreement()
{
	window.open("/etc/agreement.html","agreement","width=720, height=600, scrollbars=yes");
}
function goto_ebook()
{
	//alert('¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.');
	location.href='/support/ebook.asp';
}
function goto_privacy()
{
	window.open("/etc/privacy.html","privacy","width=720, height=600, scrollbars=yes");
}
function goto_ebs()
{
	//alert('¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.');
	window.location = "/support/ebs.asp";
	//window.open("/ebs/ebs_list.asp","ebs","width=950, height=600");
}

function go_k_note()
{
	//alert('¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.');
	window.location = "/support/k_note.asp";
	//window.open("/k_note/k_note_auto.asp","k_note","width=746, height=600, scrollbars=1");
}
function go_contentstank()
{
	alert('¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.');
	//window.location = "/support/k_note.asp";
	//window.open("/k_note/k_note_auto.asp","k_note","width=746, height=600, scrollbars=1");
}
function goto_weeklyContents()
{
	if (apDiv4.style.visibility == 'visible')
		apDiv4.style.visibility = 'hidden';
	else
		apDiv4.style.visibility = 'visible';
}
function goto_researchPaper()
{
	window.location = "/support/searchPaper.asp";
}

//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 "";
//}

//if ( getCookie( "Notice" ) != "done" ) {
// noticeWindow  =  window.open('http://www.m2-design.co.kr/pop.asp','notice','left=0, top=0, width=300,height=400');
// noticeWindow.opener = self;
//}

function pop_over(changeMode) {
	if(changeMode != null) {
		if (changeMode == 0) {
			document.getElementById('openPopFooter').style.display = 'block';
			document.getElementById('basicFooter').style.display = 'none';
		} else {
			var rightQuick = document.getElementById('footerPopup');
			document.getElementById('basicFooter').style.display = 'block';
			document.getElementById('openPopFooter').style.display = 'none';
		}
	}
}
