window.onload=function(){try{fncLoadResource();fncIsNonwordSearch()&&window.open("../index.html","_self");document.getElementById("id_search_button").onclick=function(){var a=document.getElementById("id_search").value;if(a==fncGetResourceByResourceId("enter_search_keyword")||a=="")return false;strSearchHelpTocId="../search/search";fncOpenSearchPage(1,false);return false};if(document.getElementById("id_search_button_sub")!=null)document.getElementById("id_search_button_sub").onclick=function(){var a=
document.getElementById("id_search_sub").value;if(a==fncGetResourceByResourceId("enter_search_keyword")||a=="")return false;strSearchHelpTocId="../search/search";fncOpenSearchPage(1,true);return false};var b=document.location.search.split("?search=")[1];if(b!=undefined||document.location.search==""&&document.location.toString().indexOf("search.html")!=-1){if(document.location.search==""&&document.location.toString().indexOf("search.html")!=-1)b="";b=decodeURIComponent(b);document.getElementById("id_search").value=
b;document.getElementById("id_search").style.color="#000000";if(document.getElementById("id_search_button_sub")!=null){document.getElementById("id_search_sub").value=b;document.getElementById("id_search_sub").style.color="#000000"}fncSetCookie("SEARCH-RESULT-SETTING","");fncDoSearch(1)}var c=fncGetCookie("SEARCH-KEYWORD");if(c)document.getElementById("id_search").value=c;fncSearchBox()}catch(d){}};var strWindowType="MAIN";
function fncOpenSearchPage(b,c){try{var d="",a=document.location.href,e=a.indexOf("/contents/"),f=a.indexOf("/cover/"),g=a.indexOf("/search/");a="";a=c==false?encodeURIComponent(document.getElementById("id_search").value):encodeURIComponent(document.getElementById("id_search_sub").value);d=e!=-1||f!=-1||g!=-1?"../search/search.html?search="+a:"./search/search.html?search="+a;fncSetSearchResultsInfo(b);window.open(d,"_self")}catch(h){}}
function fncIsNonwordSearch(){try{var b=document.location.href;return document.location.search.split("?search=")[1]==undefined&&b.indexOf("search.html")!=-1?true:false}catch(c){}};
