var top_head = "	<table width='780' border='0' cellpadding='0' cellspacing='0'>                                                                    	 	 	    "
		+"		<tr>                                                                                                                                        "
		+"			<td rowspan=3 width=193><a href='/' target='_top'><img src=/images/co/co_t_logo.gif border=0 class=working></a></td>           "
		+"			<td height=20 width=587></td>                                                                                                           "
		+"		</tr>                                                                                                                                       "
		+"		<tr>                                                                                                                                        "
		+"			<td align=right>                                                                                                                        "
		+"				<table border=0 cellpadding=0 cellspacing=0 width=100%>                                                                             "
		+"				<tr>                                                                                                                                "
		+"					<td width=20%></td>                                                                                                             "

		+"					<td>                                                                                                                            "
		+"						<a onClick=\"top.goGM('/ibs/private/goodsmall/P_GMAAA000.jsp');\" class=working  onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('topImage8','','/images/co/top_knbeshop_link.gif',1)\">  "
		+"						<img src=/images/co/top_knbeshop_link.gif border=0 align=absmiddle  class=working name=topImage8>                                "
		+"					</td>                                                                                                                           "

		+"					<td><img src=/images/co/co_t_menu_line.gif border=0 align=absmiddle  class=working></td>                                      "
		+"					<td>                                                                                                                            "
		+"						<a onClick=\"goUrl('/ma/head/MA000000H.html');\" class=working  onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('topImage4','','/images/co/co_t_menu2_v.gif',1)\">  "
		+"						<img src=/images/co/co_t_menu2.gif border=0 align=absmiddle  class=working name=topImage4>                                "
		+"					</td>                                                                                                                           "

		+"					<td><img src=/images/co/co_t_menu_line.gif border=0 align=absmiddle  class=working></td>                                      "
		+"					<td>                                                                                                                            "
		+"						<a onClick=\"goUrl('/solution/bbs/irmain.jsp');\" class=working  onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('topImage7','','/image/co/topmenu02_on.gif',1)\">  "
		+"						<img src=/image/co/topmenu02_off.gif border=0 align=absmiddle  class=working  name=topImage7>                               "
		+"						</a>                                                                                                                        "
		+"					</td>                                                                                                                           "

		+"					<td><img src=/images/co/co_t_menu_line.gif border=0 align=absmiddle  class=working></td>                                      "
		+"					<td>                                                                                                                            "
		+"						<a onClick=\"goUrl('/to/sitemap/sitemap.html');\" class=working  onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('topImage5','','/images/co/co_t_menu3_v.gif',1)\">  "
		+"						<img src=/images/co/co_t_menu3.gif border=0 align=absmiddle  class=working  name=topImage5>                               "
		+"						</a>                                                                                                                        "
		+"					</td>                                                                                                                           "
		+"					<td><img src=/images/co/co_t_menu_line.gif border=0 align=absmiddle  class=working></td>                                      "
		+"					<td>                                                                                                                            "
		+"						<a onClick=\"goUrl('/en/enmain.html');\" class=working onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('topImage6','','/images/co/co_t_menu4_v.gif',1)\">  "
		+"						<img src=/images/co/co_t_menu4.gif border=0 align=absmiddle  class=working name=topImage6>                                "
		+"						</a>                                                                                                                        "
		+"					</td>                                                                                                                           "
		+"					<td><img src=/images/co/co_t_menu_line.gif border=0 align=absmiddle  class=working></td>										"
		+"					<td align=right><img src=/images/co/co_t_sch_icon.gif border=0 align=absmiddle>                                                           	"
		+"						<input type=text size='15' id=WISE_WORD name='query' onkeydown=\"javascript:handlePress(event, '0');\" style=\"{border: 1px solid #B2B2B2;}\">  							"
		+"						<a href=javascript:wiseSearch();>	 																						"
		+"						<img src=/images/co/co_t_sch_btn.gif border=0 align=absmiddle class=working>												"
		+"						</a>																														"
		+"					</td>                                                                                                                           "
		+"				</tr>                                                                                                                               "
		+"				</table>                                                                                                                            "
		+"			</td>                                                                                                                                   "
		+"		</tr>                                                                                                                                       "
		+"		<tr>                                                                                                                                        "
		+"			<td height=3></td>                                                                                                                      "
		+"		</tr>                                                                                                                                       "
		+"	</table>                                                                                                                                     	";


function goUrl(murl){
	if(murl.length != 0) {
		window.location.href = murl;
	}
}

function goUrlForRedirect(murl,toUrl){
	if(murl.length != 0) {
		window.location.href = murl + toUrl;
	}
}

function goUrlPupop(murl,w,h){
	if(murl.length != 0) {
		window.open(murl,'_blank', 'height='+h+' ,width='+w+' ,status=yes,toolbar=no,menubar=no,location=no');
	}
}

function wiseSearch(){
 var txtElm = document.getElementById("WISE_WORD");
 var keyword = txtElm.value;
 if(keyword.length != 0) {
	window.location.href = "/search/search.jsp?query="+keyword;
	}
}

function handlePress(e, fnc) {
    var whichCode = (window.Event) ? e.which : e.keyCode;
    var txtElm = document.getElementById("WISE_WORD");
    var keyword = txtElm.value;
    if(e.keyCode == 13){
    if(keyword.length != 0) {
	document.f.action = "/search/search.jsp?query="+keyword;
	document.f.submit();
    }
    }
}
