	//################################################
	function m_over_sel(name, var1, src, var2, code){
		
 		var l_img = eval(name);
		l_img.src = src;
	
	}
	
	//################################################
	function home(){
		
 		location.href="../index.jsp";
	
	}
	
	//################################################
	function m_over(name, var1, src, var2, code){
		
 		var l_img = eval(name);
		l_img.src = src;
		
		var objSubMenu = document.getElementById('Layer_'+code);
	  
		document.getElementById('Layer_10101').style.display = 'none';
		document.getElementById('Layer_10102').style.display = 'none';
		document.getElementById('Layer_10103').style.display = 'none';
		document.getElementById('Layer_10104').style.display = 'none';
		document.getElementById('Layer_10105').style.display = 'none';
		document.getElementById('Layer_10106').style.display = 'none';
		objSubMenu.style.display = 'block';
	}
	
	//###############################################
	function m_out(name,src, code){
		
		try{
			if( code != sel_code.substring(0,5)){
			
				var l_img = eval(name);
				//alert(src);
				l_img.src = src;
			}
		}
		catch( E){
			
				var l_img = eval(name);
				//alert(src);
				l_img.src = src;
		}

	}
	
	
	//####################################################################	
		function search_comp(){						
			if( document.main_search.c_search.vaue != ""){
				url = "/InvestKoreaWar/work/ik/kis/index.jsp?key="+document.main_search.c_search.value;
			}
			else{
				url = "/InvestKoreaWar/work/ik/kis/index.jsp"
			}

			w1 = openWin1(url, "comp", 1024, 768, "", "", "", "", "on");
			w1.focus();
		}
	//####################################################################
	/*20071218 company_search link add
	 *20090119 link modify
	*/
		function search_comp_link(){						
				url = "http://dart.fss.or.kr/dsae001/main.do";
				//url = "http://dart.fss.or.kr/html/search/Search_M.html";

			w1 = openWin1(url, "comp", 1024, 768, "", "", "", "", "on");
			w1.focus();
		}
	
	//####################################################################	
		function search_total(){					

			if( document.main_search.query.value == ""){
				alert("Insert Search KeyWord");
				document.main_search.query.focus();
				return;
			}
			//location.href = "./search/index.jsp?query="+document.main_search.query.value;
			location.href = "/InvestKoreaWar/work/ik/kor/search/index.jsp?query="+document.main_search.query.value;
		}
		
		
		//####################################################################	
		function search_total_sub(){					

			if( document.main_search.query.value == ""){
				alert("Insert Search KeyWord");
				document.main_search.query.focus();
				return;
			}
			location.href = "../search/index.jsp?query="+document.main_search.query.value;
		}
		
	//####################################################################
		// X, Y, Status, Scrollbars »ý·« °¡´É
		function openWin1(url, name, Width, Height, X, Y, Status, scroll)
		{
		
			if(Width==null) Width = 400;
			if(Height==null) Height = 300;
		
			
			var screenX,screenY;
			var scX,scY;
			var navX, navY;
			screenX = window.screen.availWidth;
			screenY = window.screen.availHeight;
			
			scX = screenX/2
			scY = screenY/2
		
			scX = scX-(Width/2);
			scY = scY-(Height/2);
		
			if(X==null || X == "0") X = scX;
			if(Y==null || Y == "0") Y = scY;
		
			if(Status==null) Status = 0;
			
			if(scroll==null) 
			{
				scroll = 0;
			}
			else {
			    scroll = 1;
			}
		
			stat  = "left=" + X;
			stat += ",top=" + Y;
			stat += "width=" + Width;
			stat += ",height=" + Height;
			//stat += ",status=" + Status;
			stat += ",scrollbars=yes"
			
			//alert(stat);
		
			return(window.open(url, name, stat));
		}
	
	
	//#####################################################################
	function sel_menu(code, class_name)
	{
			if(code.length > 9 ) code = code.substring(0,9);
			
			//################################## ¼±ÅÃ clss Ã¼Å©
			tbl1 = document.getElementById("tabList_"+ code);
			
			//alert(tbl1);
			row1 = tbl1.rows;
			
			//alert(row1.length);
			for(i=0; i<row1.length; i++)
			{
					//alert("chk");
					//alert(row1[i].cells.length);
					for(j=0;j<row1[i].cells.length;j++){
							//alert(row1[i].cells[j].id);
				 			//alert(row1[i].cells[j].className);
				 			row1[i].cells[j].className = class_name+"_sel";
				 			//alert(class_name+"_sel");
			 		}// end for
			}
		
	
	}
	
	
	//##############################################################      
		function over_txt( type, color_txt)                                             
		{
			var obj = eval(type);
			obj.innerHTML = "<font color='"+ color_txt +"' >></font>";
		                     		    
		}   
		
		function out_txt( type, color_txt)                                             
		{
			var obj = eval(type);
			obj.innerHTML = "-";
		                     		    
		}                       
	
	
		//#####################################################################
	function sel_menu_sub(code, class_name)
	{		
			if(code.length > 9 ) code_main = code.substring(0,9);
			if(code.length > 11 ) code = code.substring(0,11);
			
			//alert(code);
			//################################## ¼±ÅÃ clss Ã¼Å©
			tbl1 = document.getElementById("tabList_sub_"+ code_main);
			
			//alert(tbl1);
			row1 = tbl1.rows;
			
			//alert(row1.length);
			for(i=0; i<row1.length; i++)
			{
					for(j=0;j<row1[i].cells.length;j++){
						tr_code	= row1[i].cells[j].id;
						if(tr_code.length > 0 ){
							tr_code = tr_code.substring(3)
							//alert(tr_code +" : "+ code +"");
							if( tr_code == code){
				 				row1[i].cells[j].className = class_name+"_sel";
				 			}	
				 		}
			 		}// end for
			}
	}

	//#####################################################################
		function ShowHide(code)
		{
		//	alert(sel_code.length);
		//	alert(code.length);
			if(code.length > 7 ) code = code.substring(0,7);
			if(sel_code.length = 5 ) sel_code = sel_code+"01";
			if(sel_code.length > 7 ) sel_code = sel_code.substring(0,7);
			
			
			//################################### ¿­¸®±â
			if(code.length > 5){
				if(code==null) code = "";
	
				tbl = document.getElementById("tabList");

				row = tbl.rows;

				
				for(i=1; i<row.length; i++)
				{
					// ÀüÃ¼ ÆîÄ¡±â / Á¢±â
					if(code=="")
					{
						row[i].style.display = "";
					}
					// ÇÏÀ§ ³ëµå ÆîÄ¡±â/Á¢±â
					else
					{
						// row[i].id °ªÀº TR_XXXXX ÀÌ·±½ÄÀÌ¹Ç·Î ¾Õ¿¡ 3ÀÚ¸®¸¦ ¶¼¾î³¿
						tr_code	= row[i].id.substring(3,row[i].id.length);
						//################################################################
						// ¼±ÅÃÇÑ ÇöÀç ³ëµå°¡ ¾Æ´Ò°æ¿ì¸¸, // ÇöÀç ³ëµåÀÇ ÇÏÀ§³ëµå¸¸
						
						
						if(code != tr_code	&&	code == tr_code.substring(0,code.length) )
						{
							row[i].style.display = "";
							
						}
						else{

							if(sel_code == tr_code.substring(0,sel_code.length) ){
								//alert( tr_code.substring(0,sel_code.length) +" : "+ sel_code );
								row[i].style.display = "";
							}
							else if(tr_code.length > 7 ){
								row[i].style.display = "none";
							}
						}				
					}
				}
			}
			
		}// end function
		
		
		//#########################################################################
		function why_go(){		
			location.href = "./bo/bo_01.jsp?code=1020102"; 
		}
		
	//###########################################################################
		function go(code, url_info) {
			//alert("page move");
			var no = "";
			var action_value = "";
			var l_unit = "";
			var m_unit = "";
			var s_unit = "";
			var imsy_var = "";
			
			//alert(url_info.indexOf("."));
			
			//alert("chk");
			
			var frm = document.frm_common;
			
			if(url_info.indexOf("bbs") > 0){
				//alert("°Ô½ÃÆÇÀ¸·Î");
				frm.code.value = code;
				frm.mode.value = "bbs";
				frm.action = "/InvestKoreaWar/work/ik/kor/bo/bo_01.jsp";
				
				//alert(code);
				if(url_info.indexOf("?") > 0){
					action_value = url_info.substring(0,url_info.indexOf("?"));
				}
				else{
					action_value = url_info;
				}
				
				frm.url_info.value = action_value;
				
				//################ no°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("no=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+3);
					k = imsy_var.indexOf("&");
					if( k > 0){
						no = imsy_var.substring(0,k);
					}
					else{
						no = imsy_var;
					}
				}
				
				frm.no.value = no;
				//alert(no);
				
				//################ l_unit°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("l_unit=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+7);
					k = imsy_var.indexOf("&");
					if( k > 0){
						l_unit = imsy_var.substring(0,k);
					}
					else{
						l_unit = imsy_var;
					}
				}
				
				frm.l_unit.value = l_unit;
				//alert(l_unit);
				
				//################ m_unit°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("m_unit=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+7);
					k = imsy_var.indexOf("&");
					if( k > 0){
						m_unit = imsy_var.substring(0,k);
					}
					else{
						m_unit = imsy_var;
					}
				}
				
				frm.l_unit.value = l_unit;
				//alert(m_unit);
				
				//################ m_unit°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("s_unit=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+7);
					k = imsy_var.indexOf("&");
					if( k > 0){
						m_unit = imsy_var.substring(0,k);
					}
					else{
						m_unit = imsy_var;
					}
				}
				
				frm.l_unit.value = l_unit;
				frm.submit();
				//alert(s_unit);
				
			}
			else if(url_info.indexOf(".") > -1){
				location.href=url_info;
			}
			else{
				location.href="/InvestKoreaWar/work/ik/kor/bo/bo_01.jsp?code="+code;
			}
			//location.href="/work/ik/bo/bo_01.jsp?code="+code;
		}


	//########################################################################### ¿Ü±¹ÀÎÁ¾ÇÕ»ýÈ°Á¤º¸ Å×½ºÆ®¿ë : 2010.10.5ÀÏ ÀÌÈÄ »èÁ¦¿¹Á¤
		function go_lvk(code, url_info) {
			//alert("page move");
			var no = "";
			var action_value = "";
			var l_unit = "";
			var m_unit = "";
			var s_unit = "";
			var imsy_var = "";
			
			//alert(url_info.indexOf("."));
			
			//alert("chk");
			
			var frm = document.frm_common;
			
			if(url_info.indexOf("bbs") > 0){
				//alert("°Ô½ÃÆÇÀ¸·Î");
				frm.code.value = code;
				frm.mode.value = "bbs";
				frm.action = "/InvestKoreaWar/work/ik/kor/bo/bo_01.jsp";
				
				//alert(code);
				if(url_info.indexOf("?") > 0){
					action_value = url_info.substring(0,url_info.indexOf("?"));
				}
				else{
					action_value = url_info;
				}
				
				frm.url_info.value = action_value;
				
				//################ no°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("no=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+3);
					k = imsy_var.indexOf("&");
					if( k > 0){
						no = imsy_var.substring(0,k);
					}
					else{
						no = imsy_var;
					}
				}
				
				frm.no.value = no;
				//alert(no);
				
				//################ l_unit°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("l_unit=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+7);
					k = imsy_var.indexOf("&");
					if( k > 0){
						l_unit = imsy_var.substring(0,k);
					}
					else{
						l_unit = imsy_var;
					}
				}
				
				frm.l_unit.value = l_unit;
				//alert(l_unit);
				
				//################ m_unit°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("m_unit=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+7);
					k = imsy_var.indexOf("&");
					if( k > 0){
						m_unit = imsy_var.substring(0,k);
					}
					else{
						m_unit = imsy_var;
					}
				}
				
				frm.l_unit.value = l_unit;
				//alert(m_unit);
				
				//################ m_unit°ªÀ» ±¸ÇÑ´Ù.
				k = url_info.indexOf("s_unit=")
				
				if( k > 0){
					imsy_var = url_info.substring(k+7);
					k = imsy_var.indexOf("&");
					if( k > 0){
						m_unit = imsy_var.substring(0,k);
					}
					else{
						m_unit = imsy_var;
					}
				}
				
				frm.l_unit.value = l_unit;
				frm.submit();
				//alert(s_unit);
				
			}
			else if(url_info.indexOf(".") > -1){
				location.href=url_info;
			}
			else{
				location.href="/InvestKoreaWar/work/ik/kor/bo/bo_01.jsp?code="+code;
			}
			//location.href="/work/ik/bo/bo_01_mcore.jsp?code="+code;
		}

		//######################################################### (2010.10.10 ¸®ºùÀÎÄÚ¸®¾Æ »ç¿ë)
		function ShowHide_lv(code)
		{
			tbl = document.getElementById("eleList");
			row = tbl.rows;

			for(i=1; i<row.length; i++)
			{

				if(code=="")
				{
					if(row[i].style.display=="")
					row[i].style.display = "none";
					else
						row[i].style.display = "";
				}
				else
				{
					tr_code	= row[i].id.substring(3,row[i].id.length);

					if(code == tr_code)
					{
						if(row[i].style.display=="") {
							row[i].style.display = "none";
						}
						else
						{
							row[i].style.display = "";
						}
					}
					else{
						if(tr_code != "" ){
							row[i].style.display = "none";
						}

					}


				}
			}
		}	
