var slink = new Array();

function show(showobj)
{
	showobj.visibility = "visible";
}

function hide(hideobj)
{
	hideobj.visibility = "hidden";
}

function actionProduct(n)
{
   slink[0] = product.style;
   slink[1] = p01.style;


   if(n == 0)
   {
   	show(slink[0]);
   	hide(slink[1]);

   }
   else if(n == 1)
   {
   	show(slink[1]);
   	hide(slink[0]);
   }


}


function actionHot(n)
{
   slink[0] = hotclick.style;
   slink[1] = hot01.style;
   slink[2] = hot02.style;
   slink[3] = hot03.style;
   slink[4] = hot04.style;


   if(n == 0)
   {
   	show(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);

   }
   else if(n == 1)
   {
   	show(slink[1]);
   	hide(slink[0]);
   	hide(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);

   }
   else if(n == 2)
   {
   	show(slink[2]);
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[3]);
   	hide(slink[4]);

   }
   else if(n == 3)
   {
   	show(slink[3]);
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[4]);

   }
   else if(n == 4)
   {
   	show(slink[4]);
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);

   }

}

function actionForm(n)
{
   slink[0] = allstock.style;
   slink[1] = m01.style;
   slink[2] = m02.style;
   slink[3] = m03.style;

   if(n == 0)
   {
   	show(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);
   }
   else if(n == 1)
   {
   	show(slink[1]);
   	hide(slink[0]);
   	hide(slink[2]);
   	hide(slink[3]);
   }
   else if(n == 2)
   {
   	show(slink[2]);
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[3]);
   }
   else if(n == 3)
   {
   	show(slink[3]);
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   }

}

// Áõ±Ç, ÀºÇà, ´ëÃâ, ÆÝµå, Ä«µå °Ë»ö
// 06.05.25 Ã¼Å©¹Ú½º·Î ¹Ù²Þ
function changeSearch(n){

   slink[0] = s00.style;
   slink[1] = s01.style;
   slink[2] = s02.style;
   slink[3] = s03.style;
   slink[4] = s04.style;


   if(n == 0)
   {
   	show(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 1)
   {
   	show(slink[1]);
   	hide(slink[0]);
   	hide(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 2)
   {
   	hide(slink[0]);
   	hide(slink[1]);
   	show(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 3)
   {
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	show(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 4)
   {
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);
   	show(slink[4]);
   }
}


/*selectÀÏ¶§
function changeSearch(){

   var n = document.CodeSearch.menu.selectedIndex;
   
   
   
   slink[0] = s00.style;
   slink[1] = s01.style;
   slink[2] = s02.style;
   slink[3] = s03.style;
   slink[4] = s04.style;


   if(n == 0)
   {
   	show(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 1)
   {
   	show(slink[1]);
   	hide(slink[0]);
   	hide(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 2)
   {
   	hide(slink[0]);
   	hide(slink[1]);
   	show(slink[2]);
   	hide(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 3)
   {
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	show(slink[3]);
   	hide(slink[4]);
   }
   else if(n == 4)
   {
   	hide(slink[0]);
   	hide(slink[1]);
   	hide(slink[2]);
   	hide(slink[3]);
   	show(slink[4]);
   }


}
*/



function goUrl2() {
	if(document.CodeSearch.smenu1.selectedIndex  ==  0){
		result = isNaN(document.CodeSearch.code.value);
		result2 = document.CodeSearch.code.value;

		if(result2 == ""){
			document.CodeSearch.code.value = "023590";
		}

		if(result){
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1401/st140101.html";
		   document.CodeSearch.submit();
		}else{
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1401/st140101.html";
		   document.CodeSearch.submit();
		}
	} else if(document.CodeSearch.smenu1.selectedIndex  ==  1){
		result = isNaN(document.CodeSearch.code.value);
		result2 = document.CodeSearch.code.value;

		if(result2 == ""){
			document.CodeSearch.code.value = "023590";
		}

		if(result){
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1405/st140502.html";
		   document.CodeSearch.submit();
		}else{
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1405/st140502.html";
		   document.CodeSearch.submit();
		}
	} else if(document.CodeSearch.smenu1.selectedIndex  ==  2){
		result = isNaN(document.CodeSearch.code.value);
		result2 = document.CodeSearch.code.value;

		if(result2 == ""){
			document.CodeSearch.code.value = "023590";
		}

		if(result){
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1405/st140506.html";
		   document.CodeSearch.submit();
		}else{
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1405/st140506.html";
		   document.CodeSearch.submit();
		}
	} else if(document.CodeSearch.smenu1.selectedIndex  ==  3){
		result = isNaN(document.CodeSearch.code.value);
		result2 = document.CodeSearch.code.value;

		if(result2 == ""){
			document.CodeSearch.code.value = "023590";
		}

		if(result){
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1405/st140505.html";
		   document.CodeSearch.submit();
		}else{
		   document.CodeSearch.action = "http://stock.emoney.co.kr/st2/st14/st1405/st140505.html";
		   document.CodeSearch.submit();
		}
	}
}

function openView2(filename) {
  window.open(filename,'codesearch','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=270,height=336');
}

function goUrl3() {
	if(document.CodeSearch.smenu2.selectedIndex  ==  0){
	   document.CodeSearch.action = "http://bank.emoney.co.kr/bk/bkb01/bkb0102/bkb010203/bkb01020301.html";
	   document.CodeSearch.submit();		
	} else if(document.CodeSearch.smenu2.selectedIndex  ==  1){
	   document.CodeSearch.action = "http://bank.emoney.co.kr/bk/bkb01/bkb0102/bkb010204/bkb01020401.html";
	   document.CodeSearch.submit();
	} else if(document.CodeSearch.smenu2.selectedIndex  ==  2){
	   document.CodeSearch.action = "http://bank.emoney.co.kr/bk/bkb01/bkb0102/bkb010201/bkb01020102.html";
	   document.CodeSearch.submit();
	} 
}

function goUrl4() {
	if(document.CodeSearch.smenu3.selectedIndex  ==  0){
	   window.location = "http://fund.emoney.co.kr/fd/fdb06/fdb0605/fdb060501.html";
	} else if(document.CodeSearch.smenu3.selectedIndex  ==  1){
	   window.location = "http://fund.emoney.co.kr/fd/fdb06/fdb0605/fdb060502.html";
	} else if(document.CodeSearch.smenu3.selectedIndex  ==  2){
	   window.location = "http://fund.emoney.co.kr/fd/fdb06/fdb0605/fdb060503.html";
	} else if(document.CodeSearch.smenu3.selectedIndex  ==  3){
	   window.location = "http://fund.emoney.co.kr/fd/fdb06/fdb0606.html";
	} else if(document.CodeSearch.smenu3.selectedIndex  ==  4){
	   window.location = "http://fund.emoney.co.kr/fd/fdb06/fdb0607.html";
	} else if(document.CodeSearch.smenu3.selectedIndex  ==  5){
	   window.location = "http://fund.emoney.co.kr/fd/fdb06/fdb0609.html";
	}
}

function goUrl5() {
	if(document.CodeSearch.smenu4.selectedIndex  ==  0){
	   document.CodeSearch.action = "http://loan.emoney.co.kr/ln/lnb02/lnb0216/lnb021603.html";
	   document.CodeSearch.submit();		
	} else if(document.CodeSearch.smenu4.selectedIndex  ==  1){
	   document.CodeSearch.action = "http://loan.emoney.co.kr/ln/lnb02/lnb0216/lnb021603.html";
	   document.CodeSearch.submit();
	} else if(document.CodeSearch.smenu4.selectedIndex  ==  2){
	   document.CodeSearch.action = "http://loan.emoney.co.kr/ln/lnb02/lnb0216/lnb021601.html";
	   document.CodeSearch.submit();
	} else if(document.CodeSearch.smenu4.selectedIndex  ==  3){
	   document.CodeSearch.action = "http://loan.emoney.co.kr/ln/lnb02/lnb0215/lnb021503.html";
	   document.CodeSearch.submit();
	} else if(document.CodeSearch.smenu4.selectedIndex  ==  4){
	   document.CodeSearch.action = "http://loan.emoney.co.kr/ln/lnb02/lnb0204/lnb020401.html";
	   document.CodeSearch.submit();
	} else if(document.CodeSearch.smenu4.selectedIndex  ==  5){
	   document.CodeSearch.action = "http://loan.emoney.co.kr/ln/lnb03/lnb0309.html";
	   document.CodeSearch.submit();
	} 
}

function goUrl6() {
	if(document.CodeSearch.smenu5.selectedIndex  ==  0){
	   document.CodeSearch.action = "http://card.emoney.co.kr/cd/cdb03/cdb0308.html";
	   document.CodeSearch.submit();		
	} else if(document.CodeSearch.smenu5.selectedIndex  ==  1){
	   window.location = "http://card.emoney.co.kr/cd/cdb08/cdb0801.html";
	}
}
// Áõ±Ç, ÀºÇà, ´ëÃâ, ÆÝµå, Ä«µå °Ë»ö end
