function html2obj( html, obj )
{
	obj.innerHTML = html ;
}


//·Î±×ÀÎ ¹Ú½º ¾ÆÀÌÇÁ·¹ÀÓ ³ôÀÌ ¼³Á¤
// iframe resize Function
function parent_reSize()
{
	try{
	    var objBody	    =	login_lnfo.document.body;
	    var objFrame	=	document.all["login_lnfo"];

	    objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
		if(objFrame.style.height == "0px"){
			objFrame.style.height = "130px";
		}
	    objFrame.style.width = '208'
	}
	//An error is raised if the IFrame domain != its container's domain
	catch(e)
	{
	    //err_handle(e);
	}
}

// iframe initialize Function
function frame_init()
{
	parent.parent_reSize();
}

// JavaScript Document
function outObject(width, height, src, trans, add){
	var html = "";
	html = '\
		<object id="f_id" '+add+' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="'+width+'" height="'+height+'">\
			<param name="movie" value="'+src+'" />\
			<param name="quality" value="high" />\
			<param name="wmode" value="transparent" />\
			<param name="menu" value="false" />\
			<param name="allowScriptAccess" value="always" />\
			<embed name="f_id" '+add+' src="'+src+'" allowScriptAccess="always" wmode="'+trans+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>\
		</object>\
	';

	document.write(html);
}

// JavaScript Document
function outObject_https(width, height, src, trans, add){
	var html = "";
	html = '\
		<object '+add+' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="'+width+'" height="'+height+'">\
			<param name="movie" value="'+src+'" />\
			<param name="quality" value="high" />\
			<param name="wmode" value="transparent" />\
			<param name="menu" value="false" />\
			<param name="allowScriptAccess" value="always" />\
			<embed '+add+' src="'+src+'" allowScriptAccess="always" wmode="'+trans+'" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>\
		</object>\
	';

	document.write(html);
}

function html_flash(width, height, src, trans, add){
	var html = "";
	html = '\
		<object '+add+' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="'+width+'" height="'+height+'">\
			<param name="movie" value="'+src+'" />\
			<param name="quality" value="best" />\
			<param name="wmode" value="'+trans+'" />\
			<param name="menu" value="false" />\
			<param name="allowScriptAccess" value="always" />\
			<embed '+add+' src="'+src+'" allowScriptAccess="always" wmode="'+trans+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>\
		</object>\
	';
	return html ;
}

// JavaScript Document
function outObject_flash(width, height, src, add){
	var html = "";
	html = '\
		<object '+add+' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="'+width+'" height="'+height+'">\
			<param name="movie" value="'+src+'" />\
			<param name="quality" value="high" />\
			<param name="wmode" value="transparent" />\
			<param name="menu" value="false" />\
			<param name="allowScriptAccess" value="always" />\
			<embed '+add+' src="'+src+'" allowScriptAccess="always" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>\
		</object>\
	';

	document.write(html);
}


//ºí·¯ÀÌ¹ÌÁö
function bluring()
{
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;


function speedbook_view(cmd)
{

	var pop_sr = window.open(cmd, '','width=750,height=600, scrollbars=yes') ;
	pop_sr.focus();
}

function memo_popup(cmd, width, height)
{
	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=yes') ;
	pop_sr.focus();
}

function dong_popup(cmd, width, height)
{
	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=yes') ;
	pop_sr.focus();
}

function dockhae_popup(cmd, width, height)
{
	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=yes') ;
	pop_sr.focus();
}

function go_payment(cmd, width, height)
{
	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=yes') ;
	pop_sr.focus();
}

function my_room_popup(cmd, width, height)
{
	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=yes') ;
	pop_sr.focus();
}

function member_info_view(cmd, width, height)
{

	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=yes') ;
	pop_sr.focus();
}

function auction_input_popup(m_cd, cl_no, flag)
{
	var cmd	= '/allin/allin_confirm.html?m_cd='+m_cd+'&cl_no='+cl_no+'&al_flag='+flag;

	var pop_sr = window.open(cmd, '','width=328,height=260, scrollbars=no') ;
	pop_sr.focus();
}

function auction_no3_input_popup(m_cd, cl_no, flag, tmp_point)
{
	var cmd	= '/no3/allin_confirm.html?m_cd='+m_cd+'&cl_no='+cl_no+'&al_flag='+flag+'&point='+tmp_point;

	var pop_sr = window.open(cmd, '','width=328,height=260, scrollbars=no') ;
	pop_sr.focus();
}

function mouseDown(e) {

	if(user_detail)
	{
		event_target = event.srcElement.tagName;

		if(event_target!="A")
		{
			if(user_detail.style.display == "block")
			{
				user_detail.style.display			= "none";
			}
		}
	}
}


document.onclick	= mouseDown;
var	user_detail		= "";

function go_sb(cmd)
{
	//alert(event.srcElement.tagName);
	if(event.srcElement.tagName=="A")
	{
		if(user_detail)
		{
			user_detail.innerHTML	= "";
			document.body.removeChild(user_detail);
		}

		user_detail = document.createElement("div") ;
		document.body.appendChild(user_detail) ;

		var con = "";

		con += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:solid 1px #C7C7C7\">";
		con += "<tr>";
		con += "	<td bgcolor=\"#FFFFFF\" style=\"padding:4 2 4 2\">";
		con += "		<table cellpadding=\"0\" cellspacing=\"1\" border=\"0\">";
		con += "		<tr>";
		con += "			<td><a href=\"javascript:memo_popup('/my_room/memo/memo_write.sb?user_no="+cmd+"', 300, 300);\">ÂÊÁö¾²±â</a></td>";
		con += "		</tr>";
		con += "		<tr>";
		con += "			<td><a href=\"javascript:memo_popup('/my_room/memo/friend_write.sb?user_no="+cmd+"', 150, 150);\">Ä£±¸¿äÃ»</a></td>";
		con += "		</tr>";
/*
		con += "		<tr>";
		con += "			<td><a href=javascript:speedbook_view('"+cmd+"');>¿øº»ÀÌ¹ÌÁö º¸±â</a></td>";
		con += "		</tr>";
*/
		con += "		</table>";
		con += "	</td>";
		con += "</tr>";
		con += "</table>";

		user_detail.style.position		= "absolute";
		user_detail.style.zIndex 			= "1000";

		user_detail.style.posTop			= (document.body.scrollTop + event.clientY);
		user_detail.style.posLeft			= (document.body.scrollLeft + event.clientX - 30);
		user_detail.style.posWidth		= 300;
		user_detail.style.posHeight		= 300;
		user_detail.innerHTML					= con;
		user_detail.style.display			= "block";
	}
	else
	{
		if(user_detail)
		{
			user_detail.style.display			= "none";
		}
	}
}

document.onclick	= mouseDown;
var	user_detail_test		= "";

function go_user_id_show(user_id)
{
//	alert(event.srcElement.tagName);
	if(event.srcElement.tagName=="IMG" && user_id != '')
	{
		if(user_detail_test)
		{
			user_detail_test.innerHTML	= "";
			document.body.removeChild(user_detail_test);
		}


		user_detail_test = document.createElement("div") ;
		document.body.appendChild(user_detail_test) ;

		var con = "";

		con += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:solid 1px #C7C7C7\">";
		con += "<tr>";
		con += "	<td bgcolor=\"#FFFFFF\" style=\"padding:4 2 4 2\">";
		con += "		<table cellpadding=\"0\" cellspacing=\"1\" border=\"0\">";
		con += "		<tr>";
		con += "			<td>"+user_id+"</td>";
		con += "		</tr>";
		con += "		</table>";
		con += "	</td>";
		con += "</tr>";
		con += "</table>";

		user_detail_test.style.position		= "absolute";
		user_detail_test.style.zIndex 			= "3000";

		user_detail_test.style.posTop			= (document.body.scrollTop + event.clientY);
		user_detail_test.style.posLeft			= (document.body.scrollLeft + event.clientX - 80);
		user_detail_test.style.posWidth			= 300;
		user_detail_test.style.posHeight		= 300;
		user_detail_test.innerHTML				= con;
		user_detail_test.style.display			= "block";
	}
	else
	{
		if(user_detail_test)
		{
			user_detail_test.style.display			= "none";
		}

//		alert(2);
	}
}



document.onclick	= mouseDown;
var	user_detail		= "";

function go_member_view(cmd, point_key, flag)
{
	//alert(event.srcElement.tagName);
	if(event.srcElement.tagName=="A")
	{
		if(user_detail)
		{
			user_detail.innerHTML	= "";
			document.body.removeChild(user_detail);
		}

		user_detail = document.createElement("div") ;
		document.body.appendChild(user_detail) ;

		var con = "";

		con += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:solid 1px #C7C7C7\">";
		con += "<tr>";
		con += "	<td bgcolor=\"#FFFFFF\" style=\"padding:4 2 4 2\">";
		con += "		<table cellpadding=\"0\" cellspacing=\"1\" border=\"0\">";
		con += "		<tr>";
		con += "			<td><a href=javascript:member_info_view('/admin/member/point_input.html?m_cd="+cmd+"&point_key="+point_key+"',500,200);>Æ÷ÀÎÆ® ÀÔ·Â</a></td>";
		con += "		</tr>";
		con += "		<tr>";
		con += "			<td><a href=javascript:member_info_view('/my_point/now_month_point.html?m_cd="+cmd+"&point_key="+point_key+"',390,500);>Æ÷ÀÎÆ®±â·Ïº¸±â</a></td>";
		con += "		</tr>";
		con += "		<tr>";
		con += "			<td><a href=javascript:member_info_view('/my_point/before_month_point.html?m_cd="+cmd+"&point_key="+point_key+"',390,500);>»ç¿ë°¡´ÉÆ÷ÀÎÆ®±â·Ïº¸±â</a></td>";
		con += "		</tr>";
		con += "		<tr>";
		con += "			<td><a href=javascript:member_info_view('/admin/member/now_point_rangking.html?m_cd="+cmd+"&pl_flag=1&point_key="+point_key+"',500,500);>ÇöÀç Æ÷ÀÎÆ® ·©Å·</a></td>";
		con += "		</tr>";
		con += "		<tr>";
		con += "			<td><a href=javascript:member_info_view('/admin/member/now_point_rangking.html?m_cd="+cmd+"&pl_flag=2&point_key="+point_key+"',500,500);>»ç¿ë °¡´É Æ÷ÀÎÆ® ·©Å·</a></td>";
		con += "		</tr>";
		con += "		<tr>";
		con += "			<td><a href=javascript:member_info_view('/admin/member/recommonder_list.html',500,500);>ÃßÃµÀÎÁ¤º¸</a></td>";
		con += "		</tr>";
		con += "		</table>";
		con += "	</td>";
		con += "</tr>";
		con += "</table>";

		user_detail.style.position		= "absolute";
		user_detail.style.zIndex 			= "1000";

		user_detail.style.posTop			= (document.body.scrollTop + event.clientY);
		user_detail.style.posLeft			= (document.body.scrollLeft + event.clientX - 30);
		user_detail.style.posWidth		= 300;
		user_detail.style.posHeight		= 300;
		user_detail.innerHTML					= con;
		user_detail.style.display			= "block";
	}
	else
	{
		if(user_detail)
		{
			user_detail.style.display			= "none";
		}
	}
}


function go_logout()
{
	document.location.href = '/member/logout.php';

}

function PrintComma(input) {
        document.write(Comma(input)) ;
}



function window_resize(width, height)
{
	self.resizeTo(width,height)
}


// ÁÖ¹Î¹øÈ£ valid check , ÀÚµ¿ ´ÙÀ½ Æû ÀÌµ¿
function jumin_next(elem1,elem2,size)
{
	num		= elem1.value ;
	siz		= num.length;
	numFlag = Number(num);
	if(!numFlag && siz > 1 && num != '00' &&  num != '000')
	{
		alert('¼ýÀÚ¸¦ ³Ö¾îÁÖ¼¼¿ä');
		elem1.value = '';
		elem1.focus() ;
		return false;
	}

	if(siz == size)
	{
		elem2.focus() ;
		return true;
	}
}

// ¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ´Â ÇÊµå¿¡¼­
// keyPress ÀÌº¥Æ® ½Ã¿¡ È£ÃâÇØ ÁÖ¸é
// ¼ýÀÚ¸¸ ÀÔ·ÂÇÏµµ·Ï ÇØ ÁØ´Ù.
function only_number()
{
	var key = window.event.keyCode ;
	if( key < 48 || key > 57 )
	{
		event.returnValue = false ;
	}
}


function valid_id( str )
{
	/* check whether input value is included space or not  */
	var retVal = check_space( str );

	if( retVal != "" )
	{
		alert("¾ÆÀÌµð´Â ºó °ø°£ ¾øÀÌ ¿¬¼ÓµÈ ¿µ¹® ¼Ò¹®ÀÚ¿Í ¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
		return 0;
	}

/*
	var isID = /^[a-z0-9_]{4,16}$/;
	if( !isID.test(str) )
	{
		alert("¾ÆÀÌµð´Â 4~16ÀÚÀÇ ¿µ¹® ¼Ò¹®ÀÚ¿Í ¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
		return 0;
	}
*/
	return 1;

} // end of valid_id()

function check_space( str )
{
	if( str.indexOf(" ") != -1)
	{
		str = str.replace(/\s/gi, "" );    /* '\s' is white space regular expression */
		return str;
	}
	else
	{
		return "";
	}
}  // end of check_space()


//¸ðµç ¸µÅ© BlurÃ³¸®
function allblur()
{
	for (i = 0; i < document.links.length; i++)
	document.links[i].onfocus = document.links[i].blur;
}



function set_activex_setting(string_tmp)
{

	document.write('<OBJECT ID="SPEEDBOOK" CLASSID="CLSID:E185DB61-F54B-4D4E-9157-08256282E41A" CODEBASE="http://www.speedbook.co.kr/activex/SPEEDBOOK.cab#version=1,0,0,1">');

	document.all.SPEEDBOOK.StartParameter('1');
}

reading_time_main = 0;

function go_best_member()
{
	reading_time_main	+= 1;
	num = parseInt(reading_time_main%4);
	switch( num )
	{
		case 1 :
			document.all["best_1"].style.display = "";
			document.all["best_2"].style.display = "none";
			document.all["best_3"].style.display = "none";
			document.all["best_4"].style.display = "none";
		break;
		case 2 :
			document.all["best_1"].style.display = "none";
			document.all["best_2"].style.display = "";
			document.all["best_3"].style.display = "none";
			document.all["best_4"].style.display = "none";
		break;
		case 3 :
			document.all["best_1"].style.display = "none";
			document.all["best_2"].style.display = "none";
			document.all["best_3"].style.display = "";
			document.all["best_4"].style.display = "none";
		break;
		case 4 :
			document.all["best_1"].style.display = "none";
			document.all["best_2"].style.display = "none";
			document.all["best_3"].style.display = "none";
			document.all["best_4"].style.display = "";
		break;
	}

}



function go_search(cmd, width, height)
{
	var pop_sr = window.open(cmd, '','width='+width+',height='+height+', scrollbars=no') ;
	pop_sr.focus();
}
function clrImg(obj)
{
	obj.style.backgroundImage="";
	obj.onkeydown=obj.onmousedown=null;
}

function go_join()
{
	parent.location.href='/user/join_info/?menu_id=65';
}


function go_main_login()
{
	var frm	= document.main_login_frm;

	if (frm.user_id.value == '')
	{
		member_service(2);
//		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		frm.user_id.focus();
		return false;
	}

	if (frm.user_passwd.value == '')
	{
		member_service(3);
//		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		frm.user_passwd.focus();
		return false;
	}

	frm.mode.value	= 'login_check';
	frm.submit();

}
//-----------------------------------------------------------------------
function EnterCheck()
{
  	if(event.keyCode==13) //¿£ÅÍÅ°¶ó¸é
  	{
  		go_main_login();
  	}
}
//--------------------------------------------------------------------------
function go_sub_login()
{
	var frm	= document.main_login_frm;

	if (frm.user_id.value == '')
	{
		member_service(2);
//		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		frm.user_id.focus();
		return false;
	}

	if (frm.user_passwd.value == '')
	{
		member_service(3);
//		alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		frm.user_passwd.focus();
		return false;
	}

	frm.mode.value	= 'login_check';

	document.all.login_frm1.style.display		= 'none';
	document.all.login_frm2.style.display		= 'none';
	document.all.login_frm3.style.display		= 'none';
	document.all.loading_view.style.display		= '';

	frm.submit();

}


function sb_popup_resize(url)
{
	sw	= screen.width;
	sh	= screen.height;
	w	= sw - 10; // to center: use desired width
	h	= sh - 70; // to center: use desired height
	cx	= 0;  // to center: (.5*sw) - (w*.5)
	cy	= 0; // to center: (.5*sh) - (h*.5)

	var  dimentions_and_such = 'width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy+',toolbar=0,status=no,fullscreen=0,menubar=0,scrollbars=0,resizable=0';
	var  dimentions_and_such1 = 'width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy+',toolbar=0,status=no,fullscreen=1,menubar=0,scrollbars=0,resizable=0';

	if (sw < 900)
	{
		Pop=window.open(url,"","toolbar=0,location=0,fullscreen=1,directories=0,status=no,menubar=0,scrollbars=0,resizable=1");
	}
	else if (sw > 900 && sw < 1030)
	{
		Pop=window.open(url,"",dimentions_and_such);
	}
	else
	{
		Pop=window.open(url,"",dimentions_and_such);
	}

}


// ÆË¾÷»çÀÌÁî Á¶Àý
function popup_size_onload(winWidth, winHeight)
{

	// ½ºÅ©·Ñ ¾ø¾Ö±â
	document.body.style.overflow='hidden';

	var clintAgent = navigator.userAgent;

	if ( clintAgent.indexOf("MSIE") != -1 )
	{
		// IE
		window.resizeBy(winWidth-document.body.clientWidth, winHeight-document.body.clientHeight);
	}
	else
	{
		window.resizeBy(winWidth-window.innerWidth, winHeight-window.innerHeight);
	}

}

function member_service(alert_code)
{
	if (document.all != null)  //IE
	{
		window.showModalDialog('/common/alert.sb?alert_code='+alert_code, window, 'dialogWidth=405px; dialogHeight=230px; scroll=no; status=no; help=no;');
	}
	else
	{
		switch(alert_code)
		{
			case 1:
				alert('¸ÕÀú ·Î±×ÀÎÀ» ÇØÁÖ¼¼¿ä.');
				break;
			case 2:
				alert('·Î±×ÀÎÀ» ÇÏ½Ã·Á¸é ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
				break;
			case 3:
				alert('·Î±×ÀÎÀ» ÇÏ½Ã·Á¸é ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
				break;
			case 4:
				alert('À¯·áÈ¸¿ø¸¸ ÀÌ¿ë °¡´ÉÇÑ ¼­ºñ½ºÀÔ´Ï´Ù.');
				break;
			case 5:
				alert('À¯·áÈ¸¿ø¸¸ ÀÌ¿ë °¡´ÉÇÑ ¼­ºñ½ºÀÔ´Ï´Ù.');
				break;
			case 6:
				alert('¾à°ü µ¿ÀÇ¸¦ ÇØ¾ß¸¸ °¡ÀÔÇÒ ¼ö ÀÖ½À´Ï´Ù.');
				break;
			case 7:
				alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
				break;
			case 8:
				alert('ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
				break;
			case 9:
				alert('ÁÖ¹Î¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
				break;
			default:
				alert('¸ÕÀú ·Î±×ÀÎÀ» ÇØÁÖ¼¼¿ä.');
				break;
		}
	}
}

function go_top_menu(url_mode)
{
	switch(url_mode)
	{
		// ÇÑ±Û ½ºÇÇµåºÏ ÇÐ½À¸ÞÄ«´ÏÁò
		case 11 :
			location.href		= '/speedbook/?action=100_edu_info&menu_id=141';
		break;

		// ÇÑ±Û ½ºÇÇµåºÏ ÈÆ·Ã°úÁ¤
		case 12:
			location.href		= '/speedbook/?action=edu_info&menu_id=2';
		break;

		// ¿¹ºñÁßµî ÈÆ·Ã°úÁ¤
		case 13:
			location.href		= '/speedbook/?action=m100_edu_info&menu_id=145';
		break;

		// ¿µ¾î ½ºÇÇµåºÏ ¸ÞÄ«´ÏÁò
		case 21:
			location.href		= '/speedbook/?action=eng_edu_info&menu_id=5';
		break;
		// ¿µ¾î ½ºÇÇµåºÏ ÈÆ·Ã°úÁ¤
		case 22:
			 top.parent.location.href		= '/speedbook/?action=eng_step_1&menu_id=6';
		break;

		//////////////////////
		// ½ÉÈ­ÇÐ½À
		//////////////////////
		case 31:
			location.href		= '/board/?menu_id=10';									// ¼ö´ÉÁö¹®ÀÐ±â ¾ð¾î¿µ¿ª
		break;
		case 32:
			location.href		= '/board/?menu_id=11';									// »ç¼³ÀÐ±â
		break;
		case 33:
			location.href		= '/board/?menu_id=12';									// ÇÐ½ÀÀÚ·á½Ç
		break;
		case 37:
			location.href		= '/board/?menu_id=127';								// ¹è°æÁö½ÄÃ¢°í
		break;
		case 34:
			location.href		= '/support_edu/?action=support_edu&menu_id=13';		// º¸¿ÏÇÐ½À
		break;
		case 35:
			location.href		= '/board/?menu_id=108';								// º¸¿ÏÇÐ½À
		break;
		case 36:
			location.href		= '/old_text/?menu_id=113';								// °íÀüÀÐ±â
		break;

		case 38:
			location.href		= '/board/?menu_id=167';								// µ¶¼­Æò¼³
		break;

		//////////////////////
		// ¸ÅÁ÷Á¸
		//////////////////////
		case 41:
			location.href		= '/board/?menu_id=16&user_mode=F';									// ½ºÇÇµåºÏ ¼º°ø±â
//			location.href		= '/board/?menu_id=17&user_section=4';									// ½ºÇÇµåºÏ ¼º°ø±â		
		break;
		case 42:
			location.href		= '/board/?menu_id=23';									// È«º¸ÀÚ·á½Ç
		break;



		case 44:
			location.href		= '/board/?menu_id=109';								// Ä®·³
		break;

		case 45:
			location.href		= '/board/?action=main&menu_id=165';					// ¿ì¼öÈ¸¿ø¼º°ø±â
		break;

		//////////////////////
		// Ä¿¹Â´ÏÆ¼ ÀÚÀ¯°Ô½ÃÆÇ
		//////////////////////
		case 51:
			location.href		= '/board/?menu_id=27';									// Ä¿¹Â´ÏÆ¼ ÀÚÀ¯°Ô½ÃÆÇ
		break;

		case 52:
			location.href		= '/board/?menu_id=16&user_mode=F';						// Ä¿¹Â´ÏÆ¼ ÈÆ·ÃÃ¼Çè¸®ºä
//			location.href		= '/board/?menu_id=63&user_mode=F';									// Ä¿¹Â´ÏÆ¼ ÇÑ±ÛÃ¼Çè»ç·Ê
//			location.href		= '/board/?menu_id=28&user_section=4';					// Ä¿¹Â´ÏÆ¼ ÇÑ±ÛÃ¼Çè»ç·Ê
		break;
		case 53:
			location.href		= '/poll/?action=list&menu_id=29';						// Ä¿¹Â´ÏÆ¼ ¼³¹®Á¶»ç
		break;

		case 54:
			location.href		= '/recommend_mall/?action=list&menu_id=57';			// ÄÚÀÎ¸ô
		break;

		case 55:
			location.href		= '/board/?menu_id=173&user_mode=F';								// Ä¿¹Â´ÏÆ¼ ÇÊµ¶Ã¼Çè»ç·Ê
		break;

		//////////////////////
		// HotÀÌ½´
		//////////////////////
		case 61:
			location.href		= '/board/?menu_id=33';									// °øÁö»çÇ×
		break;
		case 62:
			location.href		= '/board/?menu_id=14';									// ±³À°´º½º
		break;
		case 63:
			location.href		= '/board/?menu_id=41';									// ÀÌº¥Æ®
		break;
		case 64:
			location.href		= '/support_edu/?action=ranking_list&menu_id=43&edu_kind=3';		// ·©Å·
		break;
		case 65:
			location.href		= '/board/?menu_id=168';		// ¸ðÀÇ°í»çºÐ¼®
		break;
		case 66:
			location.href		= '/board/?menu_id=111';									// ¿µ¾îÁ¤º¸
		break;

		//////////////////////
		// ÇÁ·ÎÁ§Æ® M
		//////////////////////
		case 71:
			location.href		= '/speedbook/?action=m_edu_info&menu_id=120';			// ÇÐ½À¸ÞÄ¿´ÏÁò
		break;
		case 72:
			location.href		= '/speedbook/?action=m_step&menu_id=121';				// ±³À°´º½º
		break;
		case 73:
			location.href		= '/board/?menu_id=122';								// ÇÐ½À°Ô½ÃÆÇ
		break;

		//////////////////////
		// ÇÁ·ÎÁ§Æ® ¹«·áÃøÁ¤¶§¹®¿¡
		//////////////////////
		case 500:
			location.href		= '/common/free_training_m.sb';							// ¹«·áÃ¼Çè
		break;


		default:
			location.href		= '/';
		break;
	}

}


//°áÁ¦  ÆË¾÷
function payment_popup()
{
	var pop_sr = window.open('/payment/pay_choice.sb', '','width=100, height=100, scrollbars=no') ;
	pop_sr.focus();
}


//°áÁ¦  ÆË¾÷
function payment_go()
{
	location.href='/payment/pay_choice.sb';
}

//°áÁ¦  ÆË¾÷
function payment_project_go()
{
	location.href='/payment/pay_mode.sb?product_name=M';
}

//¹«·áµ¶ÇØ·Â ÃøÁ¤ ´Ý±â  ÆË¾÷
function free_close_check()
{
	alert('µ¶ÇØ·Â ÃøÁ¤Àº 1È¸¸¸ °¡´ÉÇÕ´Ï´Ù.');
	window.close();
}


// ÄÄ¸¶ Âï±â
function number_format_add(numstr)
{
	var numstr = String(numstr);
	var re0 = /(\d+)(\d{3})($|\..*)/;

	if (re0.test(numstr))
		return numstr.replace(re0, function(str,p1,p2,p3) { return number_format_add(p1) + "," + p2 + p3; });
	else
		return numstr;
}

// ÄÄ¸¶ »èÁ¦
function del_commas(str_value)
{
	var reg_exp_obj = new reg_exp('[,]');

	while(reg_exp_obj.test(str_value))
	{
		str_value = str_value.replace(reg_exp_obj, '');
	}
	return str_value;
}


// ÇÃ·¡½Ã¹«ºñ
function get_moive(movieName)
{
	if(navigator.appName.indexOf("Microsoft") != -1)
	{
		return window[movieName];
	}
	else
	{
		return document[movieName];
	}
}

function go_calendar_box(width, height, value)
{
	if(event.srcElement.tagName=="INPUT")
	{
		if(user_detail)
		{
			user_detail.innerHTML	= "";
			document.body.removeChild(user_detail);
		}

		user_detail = document.createElement("div") ;
		document.body.appendChild(user_detail) ;

		var html = '';
		html = '\
			<object id="obj_id" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" width="'+width+'" height="'+height+'">\
				<param name="movie" value="http://images.studyforce.co.kr/common/calendar/calendar.swf" />\
				<param name="quality" value="high" />\
				<param name="wmode" value="transparent" />\
				<param name="menu" value="false" />\
				<param name="allowScriptAccess" value="always" />\
				<embed name="obj_id" src="http://images.studyforce.co.kr/common/calendar/calendar.swf" allowScriptAccess="always" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>\
			</object>\
		';

		user_detail.style.position			= "absolute";
		user_detail.style.zIndex 			= "1000";

		user_detail.style.posTop			= (document.body.scrollTop + event.clientY);
		user_detail.style.posLeft			= (document.body.scrollLeft + event.clientX - 30);

		user_detail.innerHTML				= html;

		var oInstance = this;
//		setTimeout(function(){get_moive("obj_id").go_swf(value);}, 100);
	}
	else
	{
		if(!user_detail)
		{
			user_detail.style.display			= "none";
		}
	}
}

// µÎ ³¯Â¥ ÀÏ¼ö Â÷ÀÌ ±¸ÇÏ±â
function cal_date_range(val1, val2)
{
	var FORMAT = "-";

	// FORMATÀ» Æ÷ÇÔÇÑ ±æÀÌ Ã¼Å©
	if (val1.length != 10 || val2.length != 10)
		return null;

	// FORMATÀÌ ÀÖ´ÂÁö Ã¼Å©
	if (val1.indexOf(FORMAT) < 0 || val2.indexOf(FORMAT) < 0)
		return null;

	// ³âµµ, ¿ù, ÀÏ·Î ºÐ¸®
	var start_dt	= val1.split(FORMAT);
	var end_dt		= val2.split(FORMAT);

	// ¿ù - 1(ÀÚ¹Ù½ºÅ©¸³Æ®´Â ¿ùÀÌ 0ºÎÅÍ ½ÃÀÛÇÏ±â ¶§¹®¿¡...)
	// Number()¸¦ ÀÌ¿ëÇÏ¿© 08, 09¿ùÀ» 10Áø¼ö·Î ÀÎ½ÄÇÏ°Ô ÇÔ.
	start_dt[1]		= (Number(start_dt[1]) - 1) + "";
	end_dt[1]		= (Number(end_dt[1]) - 1) + "";

	var from_dt		= new Date(start_dt[0], start_dt[1], start_dt[2]);
	var to_dt		= new Date(end_dt[0], end_dt[1], end_dt[2]);

	return (to_dt.getTime() - from_dt.getTime()) / 1000 / 60 / 60 / 24;
}

// Æ÷½ºÆ®·Î ÆË¾÷¿­±â
function go_post_popup()
{
	// ºó Ã¢À¸·Î ÆË¾÷À» ¿­¾î ³õ½À´Ï´Ù.
	window.open('', 'go_popup', 'properties','width=665,height=350, scrollbars=yes');
	document.frm.target = 'go_popup';
	document.frm.submit();
}