	//################################################
	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_10201').style.display = 'none';
		document.getElementById('Layer_10202').style.display = 'none';
		document.getElementById('Layer_10203').style.display = 'none';
		document.getElementById('Layer_10204').style.display = 'none';
		document.getElementById('Layer_10205').style.display = 'none';
		document.getElementById('Layer_10206').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://englishdart.fss.or.kr/dsbc002/main.do";
			//url = "http://englishdart.fss.or.kr/cominfo/cominfo.do";
			//url = "http://www.investkorea.or.kr/InvestKoreaWar/work/ik/eng/IPSearch/search.jsp";
			location.href = "http://www.investkorea.or.kr/InvestKoreaWar/work/ik/eng/IPSearch/index.jsp";
			
			//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;
		}
		
		
		//####################################################################	
		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);
			
			//################################## 
			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);
			//################################## 
			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)
		{
			if(code.length > 7 ) code = code.substring(0,7);
			
			// 2007.09.14 News On Living 
			if(sel_code.length = 5){
				if(sel_code == "10205"){
					sel_code = sel_code+"06";
				}else{
					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
					{
						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);
			//alert(url_info.indexOf("."));
			
			//alert("chk");
			
			var frm = document.frm_common;
			
			if(url_info.indexOf("bbs") > 0){
				frm.code.value = code;
				frm.mode.value = "bbs";
				frm.action = "/InvestKoreaWar/work/ik/eng/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;
				
				//################ 
				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);
				
				//################ 
				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);
				
				//################
				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);
				
				//################ 
				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/eng/bo/bo_01.jsp?code="+code;
			}
			//location.href="/work/ik/bo/bo_01.jsp?code="+code;
		}

