/*////////////////////////  À¥Á¢±Ù¼º ³×ÀÌ°ÔÀÌ¼Ç  /////////////////////////*/

//±Û·Î¹ú ³×ºñ°ÔÀÌ¼Ç(2Depth ¸Þ´º±×·ì)¿¡ ´ëÇÑ ¸¶¿ì½º ¶Ç´Â Å°º¸µå ¹ÝÀÀ(º¸ÀÓ/¼û±è)¼³Á¤
function menuD2block(id) {
	for(num=1; num<=8; num++) document.getElementById('D2MG'+num).style.display='none'; //D2MG1~D2MG5 ±îÁö ¼û±ä ´ÙÀ½
	document.getElementById(id).style.display='block'; //ÇØ´ç ID¸¸ º¸ÀÓ
}

//·ÎÄÃ ³×ºñ°ÔÀÌ¼Ç(4Depth ¸Þ´º±×·ì)¿¡ ´ëÇÑ ¸¶¿ì½º ¶Ç´Â Å°º¸µå ¹ÝÀÀ(º¸ÀÓ/¼û±è)¼³Á¤
function menuD4MGblock(id) {
	for(num=1; num<=6; num++) document.getElementById('D4MG'+num).style.display='none'; //D4MG1~D4MG5 ±îÁö ¼û±ä ´ÙÀ½
	document.getElementById(id).style.display='block'; //ÇØ´ç ID¸¸ º¸ÀÓ
}

// ÇöÀç ÆäÀÌÁöÀÇ ¸Þ´º »óÅÂ Ç¥½Ã(ÆíÀÇ»ó ¸ðµÎ ¾ð´õ¶óÀÎÀ¸·Î ¼³Á¤µÇ¾î ÀÖÀ¸¸ç body onLoad ½Ã ½ÇÇàµÊ)
function menuD1on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD2on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD3on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD4on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD5on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD6on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD7on(id) {
	document.getElementById(id).style.textDecoration='underline';
}
function menuD8on(id) {
	document.getElementById(id).style.textDecoration='underline';
}

// ÆË¾÷Ã¢
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
	return false;
}


// ¸ÞÀÎ¼¿¸¯ÅÍ
function openDepart()
{
	var dev = document.select_1;
	if(!dev.menu2_.value || dev.menu2_.value == '') {
		alert("È¨ÆäÀÌÁö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
		dev.menu2_.focus();
		return false;
	}
	window.open(dev.menu2_.value);
	return false;
}

// ¼­ºê¼¿¸¯ÅÍ
/*
function openDepart()
{
	var dev = document.select_1;
	if(!dev.menu12_.value || dev.menu12_.value == ''){
		alert("È¨ÆäÀÌÁö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
		dev.menu12_.focus();
		return false;
	}
	window.open(dev.menu12_.value);
}
*/

function goCustom01()
{
	var dev = document.select_1;
	if(!dev.D1.value || dev.D1.value == ''){
		alert("È¨ÆäÀÌÁö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
		dev.D1.focus();
		return false;
	}

	document.location.href = dev.D1.value;
	return false;
}

// ¼­ºê¼¿¸¯ÅÍ
function MM_jumpMenu(targ,selObj,restore) { //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
  return false;
}

function wopen(src, title, wid, hei){
  	window.open(src,title,'width='+wid+',height='+hei+',marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	return false;
}

//ÀÌÀü¸ÞÀÎ ½ºÅ©¸³Æ®
function getCookie(strName)
{

	var strArg = new String(strName + "=");	
	var nArgLen, nCookieLen, nEnd;
	var i = 0, j;
	
	nArgLen    = strArg.length;
	nCookieLen = document.cookie.length;
	
	if(nCookieLen > 0) {
	
		while(i < nCookieLen) {
		
			j = i + nArgLen;
			
			if(document.cookie.substring(i, j) == strArg) {
			
				nEnd = document.cookie.indexOf (";", j);
				
				if(nEnd == -1) nEnd = document.cookie.length;
				
				return unescape(document.cookie.substring(j, nEnd));
			 
			}
			
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0) break;
		}
	}
	
	return("");
}

//°³ÀÎÁ¤º¸º¸È£
function open_privacy_pop()
{
	window.open('/popup/privacy.htm', 'privacy_pop','width=650,height=550,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
	return false;
}

//ÀÌ¸ÞÀÏ¼öÁý°ÅºÎ
function open_email_pop()
{
	window.open('/popup/email.htm', 'email_pop','width=400,height=380,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	return false;
}
//ÇÕ°ÝÀÚÁ¶È¸
function open_pass_pop()
{
	window.open('/popup/pass.asp', 'email_pop','width=320,height=100,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	return false;
}
