
/****** ÇÃ·¡½¬¸µÅ© ¸µÅ© **************************************************************/

// new GNB
function GoSwfUrl01() { location.href = "/lgeri/about/about.asp"; }
function GoSwfUrl02() { location.href = "/lgeri/message/message.asp"; }
function GoSwfUrl03() { location.href = "/lgeri/group/group01.asp"; }
function GoSwfUrl04() { location.href = "/lgeri/recruit/recruit.asp"; }

// È¨ ¸µÅ©
function goHome() { location.href = "/"; }

// Economy
function goLink1() { location.href = "javascript:goLink1_1()"; }
function goLink1_1() { location.href = "/economy/domestic/listBoard.asp?grouping=02010100"; }
function goLink1_2() { location.href = "/economy/finance/listBoard.asp?grouping=02010200"; }
function goLink1_3() { location.href = "/economy/overseas/listBoard.asp?grouping=02010300"; }
function goLink1_4() { location.href = "/economy/expert/listBoard.asp?grouping=02050300"; }

// Industry
function goLink2() { location.href = "javascript:goLink2_1()"; }
function goLink2_1() { location.href = "/industry/general/listBoard.asp?grouping=02020100"; }
function goLink2_2() { location.href = "/industry/electronic/listBoard.asp?grouping=02020200"; }
function goLink2_3() { location.href = "/industry/chemical/listBoard.asp?grouping=02020300"; }
function goLink2_4() { location.href = "/industry/etc/listBoard.asp?grouping=02020400"; }

// Economic Outlook
function goLink3() { location.href = "/outlook/listBoard.asp?grouping=02030000"; }

// Publications
function goLink4() { location.href = "javascript:goLink4_1()"; }
function goLink4_1() { location.href = "/publication/keb/kebstop.asp"; }
function goLink4_2() { location.href = "/publication/report/list.asp"; }

// Indicators
function goIndicator() { location.href = "javascript:goIndicator_1()"; }
function goIndicator_1() { location.href = "/indicator/daily/daily.asp"; }
function goIndicator_2() { location.href = "/indicator/economic/list01.asp"; }
function goIndicator_3() { location.href = "/indicator/forecast/korea.asp"; }

// ±¹¹®»çÀÌÆ®
function goKorean() { //location.href = "http://www.lgeri.com"; 
						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;
	}
}


/****** Ã¼Å©¹Ú½º ¼³¸í¹®±¸ ºñÈ°¼ºÈ­ 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 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 (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);
}


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")
}


	////////////////////////////////
	//	enter Å° Ã³¸®
	////////////////////////////////
	function _keyEnter(doThat)
	{
      if (event.keyCode == 13)
	  {
		  location.href = doThat;
      }    
	}