 function y2k(number) { return (number < 1000) ? number + 1900 : number; }
 function days_ago(adate,days) {
     return new Date(adate.getTime() - (days * 86400000));
 }
 function getSrchDate(index){
    date=new Array(6);
    var now = new Date();
    date[3]= y2k(now.getYear());
    date[4]= now.getMonth()+1;
    date[5]= now.getDate();
    var ago = days_ago(now,14);
    date[0]= y2k(ago.getYear());
    date[1]= ago.getMonth()+1;
    date[2]= ago.getDate();
    return (date[index]);
 }
 function viewArchive() {
    var alltoday = "http://times.hankooki.com/service/listmore/kt_archive.php?media=kt&page=1&strSec=&strItem=&type=";
    this.location.href = alltoday;
} 

document.write("<div id=nation style=\"position:absolute; left:172px; top:124px; width:518; height:14; z-index:1; visibility: hidden;\"> ");
document.write("  <a href=/nation/airline_news.htm>Airline News</a> | <a href=/nation/interview.htm>Times ");
document.write("  Interview</a> | <a href=/nation/the_nation.htm>Campus ");
document.write("  Life</a> | <a href=/nation/north_korea.htm>North Korea Today</a> | <a href=/nation/obituary.htm>Obituary</a> ");
document.write("</div>");
document.write("<div id=biz style=\"position:absolute; left:216px; top:124px; width:600; height:14; z-index:1; visibility: hidden;\"> ");
document.write("    ");
document.write("    <a href=/biz/stock_market.htm>Stock ");
document.write("  Market Watch</a> | <a href=/biz/biz_editor.htm>Biz ");
document.write("  Editor Column</a></div>");
document.write("<div id=tech style=\"position:absolute; left:283px; top:124px; width:518; height:14; z-index:1; visibility: visible;\"> ");
document.write("  <a href=/tech/e_biz.htm>Wiring Korea</a> | <a href=/tech/cyber_plaza.htm>Cyber ");
document.write("  Plaza</a> | <a href=/tech/world_best.htm>World Best</a> |  ");
document.write("  <a href=/tech/meet_ceo.htm>Meet the CEO</a> </div>");
document.write("<div id=culture style=\"position:absolute; left:350px; top:124px; width:518; height:14; z-index:1; visibility: hidden;\"> ");
document.write("  <a href=/culture/movie.htm>Movie</a> | <a href=/culture/book.htm>Book</a> | ");
document.write("  <a href=/culture/music.htm>Music</a> | <a href=/culture/travel.htm>Travel & ");
document.write("  Hotel</a> | <a href=/culture/perform.htm>Performance</a> </div>");
document.write("<div id=sports style=\"position:absolute; left:272px; top:124px; width:518; height:14; z-index:1; visibility: hidden;\"> ");
document.write("     ");
document.write("    ");
document.write("   </div>");
document.write("<div id=opinion style=\"position:absolute; left:382px; top:124px; width:518; height:14; z-index:1; visibility: hidden;\"> ");
document.write("  <a href=/opinion/editorial.htm>Today's Editorial</a> | <a href=/opinion/op_Editor.htm>Letters to the Editor</a> ");
document.write("  | <a href=/opinion/thoughts.htm>Thoughts of The Times</a></div>");
document.write("<div id=plaza style=\"position:absolute; left:444px; top:124px; width:518; height:14; z-index:1; visibility: hidden;\"> ");
document.write("  <a href=/plaza/abby.php>Times Study</a> | <a href=/plaza/tt_list.php?div=2>English ");
document.write("  Tutor </a> | <a href=/plaza/screen.htm>Entertainment</a>  ");
document.write("  </div>");
document.write("  <!--table1/매체 네비게이션-->");
document.write("<table width=950 border=0 cellspacing=0 cellpadding=0>");
document.write("  <tr> ");
document.write("    <td width=180><a href=http://www.hankooki.com><img src=http://img.hankooki.com/times/hankooki_logo.gif width=119 height=36 hspace=20 vspace=2 border=0></a></td>");
document.write("    <td width=770 align=right valign=bottom> | <a href=http://news.hankooki.com><font class=media> ");
document.write("      Hankookilbo</font></a> | <a href=http://sports.hankooki.com/><font class=media>SportsHankook ");
document.write("      </font></a> | <a href=http://economy.hankooki.com><font class=media>Seoul Economic Daily</font></a> ");
document.write("      | <a href=/><font class=media>Korea Times</font></a> | <a href=http://kids.hankooki.com><font class=media>Kids");
document.write("      Hankookilbo</font></a> | <a href=http://weekly.hankooki.com/><font class=media>Weekly ");
document.write("      Hankook</font></a> | <a href=http://nadri.hankooki.com/><font class=media>NadriClub</font></a> |  <a href=http://majorblog.hankooki.com/ target=_blank><font class=media>Blog</font></a> |</td>");
document.write("  </tr>");
document.write("</table>");
document.write("<!--table2/간격테이블-->");
document.write("<table width=950 height=49 border=0 cellpadding=0 cellspacing=0>");
document.write("  <tr bgcolor=#000000> ");
document.write("    <td height=4 colspan=3><img src=http://img.hankooki.com/times/kt_topdot.gif width=4 height=4></td>");
document.write("  </tr>");
document.write("  <tr> ");
document.write("    <td width=271 align=right background=http://img.hankooki.com/times/kt_topbg.gif> <a href=/times.htm><img src=http://img.hankooki.com/times/kt_logo.gif alt=KoreaTimes width=250 height=29 border=0></a></td>");
document.write("    <td background=http://img.hankooki.com/times/kt_topbg.gif></td>");
document.write("    <!--고정메뉴-->");
document.write("    <td align=right width=375 background=http://img.hankooki.com/times/kt_topbg.gif><a href=/community/community.htm><font class=fixture>Community</font></a> ");
document.write("      <font class=fixture>|</font> <a href=/service/sitemap.htm><font class=fixture>Sitemap</font></a> ");
document.write("      <font class=fixture>|</font> <a href='javascript:viewArchive();'><font class=fixture>Archive</font></a> ");
document.write("      <font class=fixture>|</font> <a href=http://pdf.hankooki.com/kt_pdf.php><font class=fixture>PDF/iBrowser</font></a>&nbsp;&nbsp;&nbsp;");
document.write("      <br><p> ");
document.write("    </td>");
document.write("  </tr>");
document.write("</table>");
document.write("<!--table3/메뉴-->");
document.write("<table width=950 height=51 border=0 cellpadding=0 cellspacing=0>");
document.write("  <tr> ");
document.write("    <td width=160 height=50 valign=top background=http://img.hankooki.com/times/kt_topbg.gif>");
document.write("	<table width=100% height=28 border=0 cellpadding=0 cellspacing=0>");
document.write("    <tr>");
document.write("      <td bgcolor=4A4A5D align=center>");
document.write("	<!--로그인창-->");
document.write("	<script language='Javascript'>");
document.write("	koreatimes_login();");
document.write("	</script>");
document.write("	<!--로그인창-->");
document.write("      </td>");
document.write("    </tr>");
document.write("    </table></td><!--하부메뉴-->");
document.write("    <td width=61 valign=top bgcolor=ebebeb><a href=/nation/nation.htm 		onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif','m1','','http://img.hankooki.com/times/menu01_over.gif',0);MM_showHideLayers('nation','','show','biz','','hide','tech','','hide','culture','','hide','sports','','hide','opinion','','hide','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu01_off.gif name=m1 width=61 height=35 border=0></a></td>");
document.write("    <td width=95 valign=top bgcolor=ebebeb><a href=/biz/biz.htm 		onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m2','','http://img.hankooki.com/times/menu02_over.gif',0);MM_showHideLayers('nation','','hide','biz','','show','tech','','hide','culture','','hide','sports','','hide','opinion','','hide','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu02_off.gif name=m2 width=95 height=35 border=0></a></td>");
document.write("    <td width=90 valign=top bgcolor=ebebeb><a href=/tech/tech.htm 		onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m3','','http://img.hankooki.com/times/menu03_over.gif',0);MM_showHideLayers('nation','','hide','biz','','hide','tech','','show','culture','','hide','sports','','hide','opinion','','hide','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu03_over.gif name=m3 width=90 height=35 border=0></a></td>");
document.write("    <td width=99 valign=top bgcolor=ebebeb><a href=/culture/culture.htm 	onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m4','','http://img.hankooki.com/times/menu04_over.gif',0);MM_showHideLayers('nation','','hide','biz','','hide','tech','','hide','culture','','show','sports','','hide','opinion','','hide','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu04_off.gif name=m4 width=99 height=35 border=0></a></td>");
document.write("    <td width=60 valign=top bgcolor=ebebeb><a href=/sports/sports.htm 		onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m5','','http://img.hankooki.com/times/menu05_over.gif',0);MM_showHideLayers('nation','','hide','biz','','hide','tech','','hide','culture','','hide','sports','','show','opinion','','hide','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu05_off.gif name=m5 width=60 height=35 border=0></a></td>");
document.write("    <td width=65 valign=top bgcolor=ebebeb><a href=/opinion/opinion.htm 	onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m6','','http://img.hankooki.com/times/menu06_over.gif',0);MM_showHideLayers('nation','','hide','biz','','hide','tech','','hide','culture','','hide','sports','','hide','opinion','','show','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu06_off.gif name=m6 width=65 height=35 border=0></a></td>");
document.write("    <td width=64 valign=top bgcolor=ebebeb><a href=/special/special.htm		onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m7','','http://img.hankooki.com/times/menu07_over.gif',0);MM_showHideLayers('nation','','hide','biz','','hide','tech','','hide','culture','','hide','sports','','hide','opinion','','hide','plaza','','hide')\"><img src=http://img.hankooki.com/times/menu07_off.gif name=m7 width=64 height=35 border=0></a></td>");
document.write("    <td width=96 valign=top bgcolor=ebebeb><a href=/plaza/plaza.htm		onMouseOut=\"MM_swapImgRestore();MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif',1)\" onMouseOver=\"MM_swapImage('m3','','http://img.hankooki.com/times/menu03_off.gif' ,'m8','','http://img.hankooki.com/times/menu08_over.gif',0);MM_showHideLayers('nation','','hide','biz','','hide','tech','','hide','culture','','hide','sports','','hide','opinion','','hide','plaza','','show')\"><img src=http://img.hankooki.com/times/menu08_off.gif name=m8 width=96 height=35 border=0></a></td>");
document.write("    <td width=160 valign=top background=http://img.hankooki.com/times/kt_topbg.gif>");

var bool_bg = false;
function check_bg (val) {
        val.value='';
        document.searchform.kw.value = '';
        document.searchform.co.value = '';
        document.searchform.sa.value = '';
        document.searchform.st.value = '';
        document.searchform.so.value = '';
        document.searchform.keyword.value = '';
        bool_bg = true;
}
function Set_Action()
{
        var wheres = document.searchform.where.value;
        var Sel_Keyword = document.searchform.keyword.value;
        var postvalue = '';
        if(document.searchform.keyword.value == ''){
                alert('Please Enter Search Words');
                return false;
        }
        switch (wheres)
        {
                case "all":
                        document.searchform.action = "http://ktsearch.hankooki.com/xsearch.php";
                        break;
                case "article" :
                        document.searchform.kw.value = Sel_Keyword;
                        document.searchform.co.value = 'kt';
                        document.searchform.sa.value = 'all';
                        document.searchform.st.value = '0';
                        document.searchform.so.value = '1';
                        document.searchform.action ="http://search.hankooki.com/times/times_list.php";
                        break;
                case "site" :
                        document.searchform.action = "http://ktsearch.hankooki.com/xsite.php";
                        break;
        }

        return true;
}

document.write("<table width=90% border=0 cellspacing=4 cellpadding=0>");
document.write("<tr> ");
document.write(" <td width=5>&nbsp; </td>");
document.write("<td valign=bottom>");
document.write("        <form name=searchform method=get action=http://ktsearch.hankooki.com/xsearch.php OnSubmit='return Set_Action()' style='margin:0px'>");
document.write("        <select name=\"where\" style=\"width:120;height:18;font-size: 9pt\">");
document.write("                <OPTION VALUE='article' selected>News Search</OPTION>");
document.write("                <OPTION VALUE='all'>Total Search</OPTION>");
document.write("                <OPTION VALUE='site'  >Web Search</OPTION>");
document.write("        </select>");
document.write("        <input type=text name=keyword size=11 style=height:18px >");
document.write("        <input type=image name=but src=http://img.hankooki.com/times/kt_search_go.gif width=28 height=20 border=0 align=center>");
document.write("        <input type=hidden name=co value=''>");
document.write("        <input type=hidden name=sa value=''>");
document.write("        <input type=hidden name=st value=''>");
document.write("        <input type=hidden name=so value=''>");
document.write("        <input type=hidden name=kw value=''>");
document.write("        </form>");
document.write("</td>");
document.write("</tr>");
document.write("</table> ");



document.write("</td>");
document.write("</tr>");
document.write("</table>");
