<!--
function openObject(){
	try
	{
		if( AnyWebDesk.isOpen == "0" )
		{
			var val = AnyWebDesk.OpenWebDesk(false);
			if(val == 1){
				AnyWebDesk.isOpen = "1";
			}else{
				AnyWebDesk.isOpen = "2";
			}
		}
	}
	catch(e)
	{
		return;
	}
}

function openObject1(){
	try
	{
		if( AnyWebDesk.isOpen == "2" )
		{
			AnyWebDesk.OpenWebDesk(false);
			AnyWebDesk.isOpen = "1";
		}
	}
	catch(e)
	{
		return;
	}
}
	
function closeObject()
{
	try
	{
		if( AnyWebDesk.isOpen == "1" )
		{
			AnyWebDesk.NotifyDeskClose();
			AnyWebDesk.isOpen == "0";
		}
	}
	catch(e)
	{
		return;
	}
}
function setCode(code) {
    try{
	    document.chartApplet.setCode(code);
//		document.all.chartImg.src = "http://218.38.18.150/chart/naver_chart/naver_kpcdb_illbong.html?code=" + code; 
	} catch(e) {
	}
}
function changeCell(cell)
{
	cell.style.cursor = "hand";
}
function setTitle(name)
{
	try{
		document.all.titleCell.innerText = " "+name;
	}catch(e){
	}
}
function setTitle2(name)
{
	try{
		document.all.titleCell2.innerText = " "+name;
	}catch(e){
	}
}

var chartWin;
function OpenChart(code){
	try{
		if(chartWin==null){
		    chartWin = window.open("./JavaChart/yahooChart.html?code="+code,"chart","width=730,height=450,scrollbars=no,toolbar=no,resizable=no");
			chartWin.focus();
		}
		else {
			 var inx = code.indexOf(".");
			 if(inx!=-1) code = code.substring(inx+1);
	         chartWin.setCode(code);
		}
		chartWin.focus();
	}catch(e){
        chartWin = window.open("./JavaChart/yahooChart.html?code="+code,"chart","width=730,height=450,scrollbars=no,toolbar=no,resizable=no");
    }
}

function OpenChart2(code){
	try{
		if(chartWin==null){
		    chartWin = window.open("./html/JavaChart/yahooChart.html?code="+code,"chart","width=730,height=450,scrollbars=no,toolbar=no,resizable=no");
			chartWin.focus();
		}
		else {
			 var inx = code.indexOf(".");
			 if(inx!=-1) code = code.substring(inx+1);
	         chartWin.setCode(code);
		}
		chartWin.focus();
	}catch(e){
        chartWin = window.open("./html/JavaChart/yahooChart.html?code="+code,"chart","width=730,height=450,scrollbars=no,toolbar=no,resizable=no");
    }
}


function sort_iframe(sKey, sDirect)
{
	document.text_up_iframe.sortData(sKey, sDirect);
}

function code_input(ref,what,type)
{
	var window_left = 600;
	var window_top = 50;
	ref = ref + "?what=" + what + "&mod_grp=juga&type=" + type;
	open(ref,"code_in",'width=360,height=400,toolbar=no,scrollbars=no,resizable=no,status=no,top=' + window_top + ',left=' + window_left + '').focus();
}

function code_input_china(ref,what,type)
{
	var window_left = 600;
	var window_top = 50;
	ref = ref + "?what=" + what + "&mod_grp=juga&type=" + type;
	open(ref,"code_in",'width=300,height=400,toolbar=no,scrollbars=no,resizable=no,status=no,top=' + window_top + ',left=' + window_left + '').focus();
}
function input_keyevent(ref,code,what,type,search,dbcode)
{
	if(event.keyCode==13 || search!=null) {
		var window_left = 600;
		var window_top = 50;
//	if(!code) return;
//	var type ="";
//	var rtr = parent.url.location.href = "./etc/search_code_extend.php?code_name="+code+"&ref="+ref+"&what="+what;
                
		ref = "./etc/code.html" + "?what=" + what + "&mod_grp=juga&input_text=yes" + "&code_name="+code+"&type="+type+"&dbcode="+dbcode;
		open(ref,"code_in",'width=360,height=400,toolbar=no,scrollbars=no,resizable=no,status=no,top=' + window_top + ',left=' + window_left + '').focus();
	}
}
function JCodeEvent()
{
	if(event.keyCode==0x0d)
	{
//		document.graph.submit();
//		document.graph.code.focus();
//		document.graph.code.select();
		form_sub();
	}
}
function form_sub()
{
	var code = document.graph.code.value;
	try{
		if(chartWin==null){
		    chartWin = window.open("./JavaChart/yahooChart.html?code="+code,"JavaChart","width=750,height=550,scrollbars=no,toolbar=no,resizable=yes");
//			chartWin.focus();
		}
		else {
			 var inx = code.indexOf(".");
			 if(inx!=-1) code = code.substring(inx+1);
	         chartWin.setCode(code);
		}
		chartWin.focus();
	}catch(e){
        chartWin = window.open("./JavaChart/yahooChart.html?code="+code,"JavaChart","width=750,height=550,scrollbars=no,toolbar=no,resizable=yes");
    }
}
function form_sub2()
{
	var code = document.graph.code.value;
	try{
		if(chartWin==null){
		    chartWin = window.open("./html/JavaChart/yahooChart.html?code="+code,"JavaChart","width=750,height=550,scrollbars=no,toolbar=no,resizable=yes");
//			chartWin.focus();
		}
		else {
			 var inx = code.indexOf(".");
			 if(inx!=-1) code = code.substring(inx+1);
	         chartWin.setCode(code);
		}
		chartWin.focus();
	}catch(e){
        chartWin = window.open("./html/JavaChart/yahooChart.html?code="+code,"JavaChart","width=750,height=550,scrollbars=no,toolbar=no,resizable=yes");

    }

}


function form_sub3()
{
	
	var code = document.graph.code.value;
	code_a = code.substr(0,2);

	if(isNaN(code))
		{
			if (eval(code.indexOf("_"))>0  || code_a == "97"  || code_a == "99" || code_a == "92")
				window.open("./ifc_global_06.html?code="+code,"code","width=1024,height=768,scrollbars=yes,toolbar=yes,resizable=yes");
			else
				window.open("./ifc_global_01.html?code="+code,"code","width=1024,height=768,scrollbars=yes,toolbar=yes,resizable=yes");

		} else 
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" ) 
				window.open("./ifc_global_06.html?code="+code,"code","width=1024,height=768,scrollbars=yes,toolbar=yes,resizable=yes");
			else 
				window.open("http://kr.quote.yahoo.com/st01.html?code="+code,"code","width=1024,height=768,scrollbars=yes,toolbar=yes,resizable=yes");

}

function form_sub4(what)
{
	var select = document.graph.select.value;
		    window.open("./etc/auto_code.php?select=" + select + "&what=" + what + "&mod_grp=juga","select","width=250,height=350,scrollbars=no,toolbar=no,resizable=yes");
		//	alert(code);
}


function form_sub5(menu)
{
	
	var code = document.graph.code.value;
		code_a = code.substr(0,2);

//	alert(menu);
	if(isNaN(code))
		{
		
			if (eval(code.indexOf("_"))>0 || code_a == "97"  || code_a == "99" || code_a == "92")
			{
//				location.href = "./ifc_global_06.html?code=" + code;
				
			}else
			{
				location.href = "./w_asia01.html?code=" + code + "&menu=" + menu;
			}
		} else 
		{
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" )
			{
//				location.href = "./ifc_global_06.html?code=" + code;
			
			}else 
			{
				location.href = "./w_asia01.html?code=" + code + "&menu=" + menu;
			//graph.submit
			}
		}
}

function form_sub6(menu)
{
	
	var code = document.graph.code.value;
		code_a = code.substr(0,2);

	
	if(isNaN(code))
		{
		
			if (eval(code.indexOf("_"))>0 || code_a == "97"  || code_a == "99" || code_a == "92")
			{
//				location.href = "./ifc_global_06.html?code=" + code;
				
			}else
			{
				location.href = "./sub20_1.html?code=" + code + "&menu=" + menu;
			}
		} else 
		{
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" )
			{
//				location.href = "./ifc_global_06.html?code=" + code;
			
			}else 
			{
				location.href = "./sub20_1.html?code=" + code + "&menu=" + menu;
			//graph.submit
			}
		}
}

function form_sub7(menu)
{
	
	var code = document.graph.code.value;
		code_a = code.substr(0,2);

	
	if(isNaN(code))
		{
		
			if (eval(code.indexOf("_"))>0 || code_a == "97"  || code_a == "99" || code_a == "92")
			{
//				location.href = "./ifc_global_06.html?code=" + code;
				
			}else
			{
				location.href = "./present_2.htm?code=" + code + "&menu=" + menu;
			}
		} else 
		{
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" )
			{
//				location.href = "./ifc_global_06.html?code=" + code;
			
			}else 
			{
//				location.href = "http://kr.quote.yahoo.com/st01.html?code=" + code;
			//graph.submit
			}
		}
}


function form_sub8(menu)
{
	
	var code = document.graph.code.value;
		code_a = code.substr(0,2);

	
	if(isNaN(code))
		{
		
			if (eval(code.indexOf("_"))>0 || code_a == "97"  || code_a == "99" || code_a == "92")
			{
//				location.href = "./ifc_global_06.html?code=" + code;
				
			}else
			{
				location.href = "./present_3.htm?code=" + code+ "&menu=" + menu;
			}
		} else 
		{
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" )
			{
	//			location.href = "./ifc_global_06.html?code=" + code;
			
			}else 
			{
	//			location.href = "http://kr.quote.yahoo.com/st01.html?code=" + code;
			//graph.submit
			}
		}
}

function form_sub9(menu)
{
	
	var code = document.graph.code.value;
		code_a = code.substr(0,2);

	
	if(isNaN(code))
		{
		
			if (eval(code.indexOf("_"))>0 || code_a == "97"  || code_a == "99" || code_a == "92")
			{
	//			location.href = "./ifc_global_06.html?code=" + code;
				
			}else
			{
				location.href = "./present_4.htm?code=" + code+ "&menu=" + menu;
			}
		} else 
		{
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" )
			{
	//			location.href = "./ifc_global_06.html?code=" + code;
			
			}else 
			{
	//			location.href = "http://kr.quote.yahoo.com/st01.html?code=" + code;
			//graph.submit
			}
		}
}
function form_sub10(menu)
{
	
	var code = document.graph.code.value;
		code_a = code.substr(0,2);

	
	if(isNaN(code))
		{
		
			if (eval(code.indexOf("_"))>0 || code_a == "97"  || code_a == "99" || code_a == "92")
			{
	//			location.href = "./ifc_global_06.html?code=" + code;
				
			}else
			{
				location.href = "./w_asia05.html?code=" + code+ "&menu=" + menu;
			}
		} else 
		{
			if (eval(code.indexOf("_"))>0 || code_a == "97" || code_a == "99" || code_a == "92" )
			{
	//			location.href = "./ifc_global_06.html?code=" + code;
			
			}else 
			{
				location.href = "./w_asia05.html?code=" + code+ "&menu=" + menu;
			//graph.submit
			}
		}
}

-->
