


// Ã¤¿ëÆäÀÌÁö
// Ã¤¿ë½Ã URL : /lgeri/recruit/recruit.asp
// ¹ÌÃ¤¿ë½Ã URL : /lgeri/recruit/noRecruit.asp
function goRecruit() { location.href = "/lgeri/recruit/list.asp"; }
//function goRecruit_1() { location.href = "/lgeri/recruit/Recruit_ing.asp"; }


/****** ÇÃ·¡½¬¸µÅ© ¸µÅ© **************************************************************/

// È¨ ¸µÅ©
function goHome() { location.href = "/"; }

// °æÁ¦Á¤º¸
function goLink1() { location.href = "javascript:goLink1_1()"; }
function goLink1_1() { location.href = "/economy/domestic/listWebzine.asp?grouping=01010100"; }
function goLink1_2() { location.href = "/economy/overseas/listWebzine.asp?grouping=01010200"; }
function goLink1_3() { location.href = "/economy/finance/listWebzine.asp?grouping=01010300"; }

// °æ¿µÁ¤º¸
function goLink2() { location.href = "javascript:goLink2_1()"; }
function goLink2_1() { location.href = "/management/strategy/listWebzine.asp?grouping=01020100"; }
function goLink2_2() { location.href = "/management/organization/listWebzine.asp?grouping=01020200"; }
function goLink2_3() { location.href = "/management/marketing/listWebzine.asp?grouping=01020300"; }
function goLink2_4() { location.href = "/management/finance/listWebzine.asp?grouping=01020400"; }
function goLink2_5() { location.href = "/management/general/listWebzine.asp?grouping=01020500"; }

// »ê¾÷Á¤º¸
function goLink3() { location.href = "javascript:goLink3_1()"; }
function goLink3_1() { location.href = "/industry/general/listWebzine.asp?grouping=01030100"; }
function goLink3_2() { location.href = "/industry/electronic/listWebzine.asp?grouping=01030200"; }
function goLink3_3() { location.href = "/industry/chemical/listWebzine.asp?grouping=01030300"; }
function goLink3_4() { location.href = "/industry/etc/listWebzine.asp?grouping=01030400"; }

// ¹ß°£¹°
function goLink4() { location.href = "javascript:goLink4_1()"; }
function goLink4_1() { location.href = "/publication/businessInsight/list.asp"; }
function goLink4_2() { location.href = "/publication/report/list.asp"; }
function goLink4_3() { location.href = "/publication/prospect/list.asp"; }
function goLink4_4() { location.href = "/publication/book/contents.asp"; }
function goLink4_5() { location.href = "/publication/application/appForm.asp"; }
function goLink4_6() { location.href = "/publication/weekly/list.asp"; }
function goLink4_7() { location.href = "/publication/summary/list.asp"; }

// °æÁ¦µ¿ÇâÁöÇ¥
function goTrend() { location.href = "javascript:goTrend_1()"; }
function goTrend_1() { location.href = "/trend/daily/daily.asp"; }
function goTrend_2() { location.href = "/trend/korea/korea.asp"; }
function goTrend_3() { location.href = "/trend/world/world.asp"; }
function goTrend_4() { location.href = "/trend/indicator/list01.asp"; }

// ¿µ¹®»çÀÌÆ®
function goEnglish() { //location.href = "http://english.lgeri.co.kr/?a"; 
						location.href = "/login/other_login.asp"; 
						}

// ÀÌ¿ë¾È³»
function goUseinfo() { location.href = "/useinfo/useinfo.asp"; }

// »çÀÌÆ®¸Ê
function goSitemap() { location.href = "/sitemap/sitemap.asp"; }

/****** ¾ÆÅ©·Îºª ¸®´õ ´Ù¿î·Îµå ¸µÅ© **************************************************************/
function getAcrobat() {
	window.open("http://www.korea.adobe.com/products/acrobat/readstep2.html", "", "");
}

/****** ÁÂÃø¸Þ´º °ü·Ã ÇÔ¼ö **************************************************************/
function setLeftMenu(thisId) {
	var nowMenuObj = document.getElementById(thisId);
	if (nowMenuObj) {
		nowMenuObj.thisOnOff = "false";
		nowMenuObj.src = getThisSrc(nowMenuObj.src,"on");
	}
}

function LeftOnOff(flag) {
	var source=event.srcElement;
	if(document.images && source.tagName=="IMG") {
		if(typeof(source.thisOnOff) == "undefined") return;
		if(source.thisOnOff == "false") return;
		imgPath = source.src;
		source.src = getThisSrc(imgPath,flag);
	}
}

function getThisSrc(imgPath,flag) {
	var imgPathLen = imgPath.length;
	var imgPathFlag = imgPath.lastIndexOf("/");
	var imgName = imgPath.substring(0,imgPathFlag+1);
	var fileType = imgPath.substring(imgPath.lastIndexOf("."),imgPathLen);
	var fileName = imgPath.substring(imgPathFlag+1,imgPath.lastIndexOf("_"));
	var nowImgUrl = imgName + fileName + "_" + flag + fileType;
	return nowImgUrl;
}


/****** ÁÂÃø ¸¶ÀÌÆäÀÌÁö More ¹öÆ° ¾×¼Ç **************************************************************/
function showMoreList() {
	setDisplay("myPageMoreBtn","none");
	setDisplay("myPageMoreMenu","");
}

function hiddenMoreList() {
	setDisplay("myPageMoreBtn","");
	setDisplay("myPageMoreMenu","none");
}

function setDisplay(objId,mode) {
	var obj = document.getElementById(objId);
	if(obj) obj.style.display = mode;
}


/****** Footer Family Site **************************************************************/
function goSelectedLink(thisURL) {
	if (thisURL == "list") {
		location.href = "/familySite/list.asp";
		return;
	}
	else if(thisURL != null && thisURL != "") {
		window.open(thisURL, "", "");
		return;
	}
}

/****** ¼¿·ºÆ®¹Ú½º ºñÈ°¼ºÈ­ On Off**************************************************************/
function changeSelectbox(thisId,mode) {
	var thisObj = document.all[thisId];
	var nowMode = false;
	if (mode == "off") nowMode = true;
	thisObj.disabled = nowMode;
}

/****** Ã¼Å©¹Ú½º ºñÈ°¼ºÈ­ On Off**************************************************************/
function changeCheckbox(thisId,mode) {
	var thisObj = document.all[thisId];
	var nowMode = false;
	if (mode == "off") nowMode = true;
	for (i =0; i < thisObj.length; i++) {
		thisObj[i].disabled = nowMode;
	}
}

/****** Ã¼Å©¹Ú½º Ã¼Å©**************************************************************/
function checkCheckbox(thisId,mode) {
	var thisObj = document.all[thisId];

	for (i =0; i < thisObj.length; i++) {
		thisObj[i].checked = mode;
	}
}

/****** Ã¼Å©¹Ú½º ¼³¸í¹®±¸ ºñÈ°¼ºÈ­ On Off**************************************************************/
function changeTextColor(thisId,mode) {
	var i = 1;
	var textColor = "#666666";
	if (mode == "off") textColor = "#A6A6A3";
	while (document.getElementById(thisId + i)) {
		document.getElementById(thisId + i).style.color = textColor;
		i = i + 1;
	}
}

/****** ÀÌ¹ÌÁö ·Ñ¿À¹ö **************************************************************/
function EImgChg(flag) {
	source=event.srcElement;
	if(document.images && source.tagName=="IMG") {
		if(source.name == '') return;
		imgElement = source.name;
		imgPath = source.src;
		imgPathLen = imgPath.length;
		imgPathFlag = imgPath.lastIndexOf("/");
		imgName = imgPath.substring(0,imgPathFlag+1);
		fileType = imgPath.substring(imgPath.lastIndexOf("."),imgPathLen);
		document.images[imgElement].src =  imgName + imgElement + "_" + flag + fileType;
	}
}

/****** ÆË¾÷Ã¢ **************************************************************/
function popOpen(url) {
	var positionX = (screen.width-400)/2;
	var positionY = (screen.height-250)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width=400,height=250,toolbar=no,scrollbars=no" );
}
function popOpen2(url,width,height,toolbar,scrollbars,resize) {
	var positionX = (screen.width-400)/2;
	var positionY = (screen.height-250)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width="+width+",height="+height+",toolbar="+toolbar+",scrollbars="+scrollbars +",resizable="+resize);
}

/****** ÆË¾÷Ã¢ ¸®»çÀÌÁî **************************************************************/
function popResize() {
	var thisX = document.getElementById("offsetTable").offsetWidth;
	var thisY = document.getElementById("offsetTable").offsetHeight;
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 80;
	var marginY = 99; //ÅÛÇÃ¸´ÀÇ Çì´õ¿Í Ç²ÅÍ ³ôÀÌ + ¾ËÆÄ
	if (isSP2()) marginY += 25	// XP SP2ÀÏ °æ¿ì, ÆË¾÷Ã¢¿¡ °­Á¦·Î³ª¿À´Â »óÅÂ¹Ù¿µ¿ª¸¸Å­ ´õÇØÁØ´Ù
	if (thisX > maxThisX) {
		window.document.body.scroll = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		window.document.body.scroll = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	window.resizeTo(thisX+10,thisY+marginY);
	
	var windowX = (screen.width - (thisX+10))/2;
	var windowY = (screen.height - (thisY+marginY))/2 - 20;
	window.moveTo(windowX,windowY);
}


/****** À©µµ¿ì XP ¼­ºñ½ºÆÑ ¼³Ä¡¿©ºÎ Ã¼Å© **************************************************************/
function isSP2() { // °á°ú°¡ trueÀÌ¸é XP¼­ºñ½ºÆÑ2°¡ ¼³Ä¡µÈ °ÍÀÓ.
	return (window.navigator.userAgent.indexOf("SV1") != -1);
}


function _pdfview(grouping,seq,filename){
	window.open("/common/popup/pdfview.asp?grouping="+grouping+"&seq="+seq+"&filename="+filename, "pdfview"+seq+grouping, "left=100, top=50, width=700, height=600, scrollbars=yes, toolbars=yes, resizable=yes")
}


function _sempdfview(idx,filename){
	window.open("/common/popup/sempdfview.asp?idx="+idx+"&filename="+filename, "sempdfview", "left=100, top=50, width=700, height=600, scrollbars=yes, toolbars=yes, resizable=yes")
}


	////////////////////////////////
	//	¸¶ÀÌÆú´õ¿¡ ´ã±â...
	////////////////////////////////
	function _myFolder(grouping_seq,typ){
	    if (grouping_seq == ''){
	    }else{ 
			popOpen('/common/popup/inputMyfolder.asp?grouping_seq='+grouping_seq+'&typ='+typ);
			/*
		    document.frm.myfolders.value = "1";
			document.frm.method="post";
			document.frm.target="_blank";
			document.frm.action = "/common/_include/inputMyfolder.asp?grouping_seq="+grouping_seq;
			document.frm.submit();
			*/
	    }
	}


	////////////////////////////////
	//	enter Å° Ã³¸®
	////////////////////////////////
	function _keyEnter(doThat)
	{
      if (event.keyCode == 13)
	  {
		  location.href = doThat;
      }    
	}


//!!!!!!!!!!!!!!!!!!!!!!!!!!	¿À¸¥ÂÊ ¸¶¿ì½º ¸·À½
//document.onselectstart = function() {return false}
//document.oncontextmenu = function() {return false}