function StockSearch()           
{                               
	var SearchWord;         
	var FSel_String;        
	var TSearchWord;        
	                        
	SearchWord = document.StockSearch.kw.value;
                 
	for(i=0;i<document.StockSearch.sel.length;i++) {
		if(document.StockSearch.sel[i].checked == true){
			FSel_String = document.StockSearch.sel[i].value;
			break;
		}       
		FSel_String="";
	}               
	if(FSel_String == "0"){ 
		window.open('http://koreai.surenet.co.kr/surenet_stocksearch.html?fsearch='+SearchWord,'', 'toolbar=no, status=no, width=450, height=474, top=50, left=290, directories=no, scrollbars=no, location=no, resizable=no, menubar=no');
	}else if(FSel_String == "1"){
		window.open('http://economy.hankooki.com/diction/index.htm','_new','location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=now,top=50, left=290,width=580,height=480');
	}
}

function StockSearch2()
{
        var SearchWord;
        var FSel_String;
        var TSearchWord;

        SearchWord = document.StockSearch.kw.value;

        for(i=0;i<document.StockSearch.sel.length;i++) {
                if(document.StockSearch.sel[i].checked == true){
                        FSel_String = document.StockSearch.sel[i].value;
                        break;
                }
                FSel_String="";
        }
        if(FSel_String == "0"){
                window.open('http://koreai.surenet.co.kr/surenet_stocksearch.html?fsearch='+SearchWord,'', 'toolbar=no, status=no, width=450, height=474, top=50, left=290, directories=no, scrollbars=no, location=no, resizable=no, menubar=no');
        }else if(FSel_String == "1"){
                window.open('http://economy.hankooki.com/diction/index.htm','_new','location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=now,top=50, left=290,width=580,height=480');
        }
	return false;
}

document.write("<table width=270 border=0 cellpadding=2 cellspacing=1 bgcolor=#CCCCCC>");
document.write("<form method=POST name='StockSearch' action=\"#\" onSubmit=\"return StockSearch2()\">");
document.write("<tr bgcolor=F0F1F0>");
document.write("<td>");
document.write("<input type=radio name='sel' value='0' checked>ÁÖ°¡");
document.write("<input type=radio name='sel' value='1'>¿ë¾î»çÀü&nbsp;&nbsp;&nbsp;<input type=text name='kw' class=f1 size=15 value=''>&nbsp;");
document.write("<a href=javascript:StockSearch()><input type=image src=http://img.hankooki.com/sedaily/200505/icon_search.gif border=0 align=absmiddle></a>");
document.write("</td>");
document.write("</tr>");
document.write("</form>");
document.write("</table>");
/*
document.write("<p style=margin-top:8px>");
document.write("<table width=270 border=0 cellpadding=0 cellspacing=0>");
document.write("<tr><td>");
document.write("<a href=http://misskorea.hankooki.com target=_top><img src=http://img.hankooki.com/misskorea/2005/missportsban.gif border=0></a>");
document.write("</td></tr>");
document.write("</table>");
*/

