function fncSearchKeyDown(a,b,d){try{if(a==13)d!=undefined?document.getElementById("id_search_button_sub").click():document.getElementById("id_search_button").click();if(b==fncGetResourceByResourceId("enter_search_keyword"))if(document.getElementById("id_search")){document.getElementById("id_search").value="";document.getElementById("id_search").style.color="#000000"}else if(document.getElementById("id_search_texts")){document.getElementById("id_search_texts").value="";document.getElementById("id_search_texts").style.color=
"#000000"}}catch(c){}}function fncGetResourceByResourceId(a){try{for(var b=eval(resource),d=b.length,c=0;c<d;c++)if(b[c].id==a)return b[c].value;return""}catch(i){}}function fncLoadResource(){try{for(var a=eval(resource),b=a.length,d=0;d<b;d++){if(document.getElementById("id_res_"+a[d].id))document.getElementById("id_res_"+a[d].id).innerHTML=a[d].value;if(document.title=="")if(a[d].id=="title")document.title=a[d].value}}catch(c){}}
function fncSearchBox(){try{if(document.getElementById("id_search")){if(document.getElementById("id_search").value=="")document.getElementById("id_search").value=fncGetResourceByResourceId("enter_search_keyword");if(document.getElementById("id_search").value==fncGetResourceByResourceId("enter_search_keyword"))document.getElementById("id_search").style.color="#808080";document.getElementById("id_search").onclick=function(){if(this.value==fncGetResourceByResourceId("enter_search_keyword")){this.value=
"";document.getElementById("id_search").style.color="#000000"}};document.getElementById("id_search").onblur=function(){if(this.value==""){this.value=fncGetResourceByResourceId("enter_search_keyword");document.getElementById("id_search").style.color="#808080"}}}}catch(a){}try{if(document.getElementById("id_search_sub")){if(document.getElementById("id_search_sub").value=="")document.getElementById("id_search_sub").value=fncGetResourceByResourceId("enter_search_keyword");if(document.getElementById("id_search_sub").value==
fncGetResourceByResourceId("enter_search_keyword"))document.getElementById("id_search_sub").style.color="#808080";document.getElementById("id_search_sub").onclick=function(){if(this.value==fncGetResourceByResourceId("enter_search_keyword")){this.value="";document.getElementById("id_search_sub").style.color="#000000"}};document.getElementById("id_search_sub").onblur=function(){if(this.value==""){this.value=fncGetResourceByResourceId("enter_search_keyword");document.getElementById("id_search_sub").style.color=
"#808080"}}}}catch(b){}}var search;
function fncDoSearch(a){try{var b=document.getElementById("id_search").value;var d=b=b.trim();if(b==""||b==fncGetResourceByResourceId("enter_search_keyword"))document.getElementById("id_search_results").innerHTML=fncGetNoneFoundMessage("");else{var c=/([$()\-^\\\|\[\]{},:+*.?])/g;if(c.exec(b)!=null)b=b.replace(c,"\\$1");c=/(&)/g;if(c.exec(b)!=null){b=b.replace(c,"&amp;");d=d.replace(c,"&amp;")}c=/(<)/g;if(c.exec(b)!=null){b=b.replace(c,"&lt;");d=d.replace(c,"&lt;")}c=/(>)/g;if(c.exec(b)!=null){b=
b.replace(c,"&gt;");d=d.replace(c,"&gt;")}var i=false,h=[],g=b.length;for(c=0;c<g;c++){var f=b.substring(c,c+1);if(f=='"'||f=="\u201d"||f=="\u201c"){f="";i=!i}else if(i&&(f==" "||f=="\u3000"||f=="\t"))f="___SPACE___";h.push(f)}b=h.join("");i=false;h=[];g=d.length;for(c=0;c<g;c++){f=d.substring(c,c+1);if(f=='"'||f=="\u201d"||f=="\u201c"){f="";i=!i}else if(i&&(f==" "||f=="\u3000"||f=="\t"))f="___SPACE___";h.push(f)}d=h.join("");f=/[\s\u3000]+/;var j=b.split(f),m=d.split(f);if(j.join("")==""){document.getElementById("id_search").value=
fncGetResourceByResourceId("enter_search_keyword");document.getElementById("id_search").style.color="#808080";document.getElementById("id_search_results").innerHTML=fncGetNoneFoundMessage("");return false}g=j.length;for(c=0;c<g;c++)j[c]=j[c].replace(/___SPACE___/g," ");g=m.length;for(c=0;c<g;c++)m[c]=m[c].replace(/___SPACE___/g," ");var k=fncGetConstantByName("search_show_around");k||(k=50);i=f=k;var o=fncGetConstantByName("search_show_result_count");o||(o=10);var q=fncGetConstantByName("search_page_max_range");
q||(q=5);var r=parseInt(q/2),B=parseInt(q/2);k=0;h=[];var n=[];if(strWindowType!="GLOSSARY"){h.push("");h.push('<div class="search_result_conditions" id="id_search_result_item"></div>')}for(var x=j.length,p=0;p<x;p++){var l=j[p];if(document.getElementById("id_search_options_multibyte"))if(document.getElementById("id_search_options_multibyte").checked){l=fncConvertSearchText(l,true);j[p]=l}var y="i";if(document.getElementById("id_search_options_case")){if(document.getElementById("id_search_options_case").checked)y=
""}else if(fncGetCookie("SEARCH-OPTIONS-CASE")=="TRUE")y=""}g=search.length;for(c=0;c<g;c++){var u=search[c].body,N=search[c].toc_id,O=fncGetEncodeText(search[c].title);if(u){x=j.length;var F=[];for(p=0;p<x;p++){l=j[p];var C="("+l+")",G=RegExp(C,y);if(G.exec(u)==null)break;else{var w=u.search(G);if(w!=-1){var s="",H=u.substring(0,w),I=H.lastIndexOf("&");if(l!="&")if(I!=-1)s=H.substring(I);var v="",J=u.substring(w+m[p].length),K=J.indexOf(";");if(m[p]!=";")if(K!=-1)v=J.substring(0,K+1);var z=s+m[p].toLowerCase()+
v;if(z=="&amp;"||z=="&lt;"||z=="&gt;"||z=="&quot;")break;for(var A=u.substring(w-f,w+i);;)if(A.substring(0,1).match(/[\u0E31]|[\u0E47-\u0E4E]|[\u0E34-\u0E3A]/)!=null)A=A.substring(1);else break;F.push(A)}}if(p==j.length-1){k++;if(a*o>=k+0&&a*o-o<k+0){var e=fncGetEncodeText(F.join("..."));for(v=s=0;v<x;v++){switch(s){case 0:strMarkerColor=String.fromCharCode(8320);break;case 1:strMarkerColor=String.fromCharCode(8321);break;case 2:strMarkerColor=String.fromCharCode(8322);break;case 3:strMarkerColor=
String.fromCharCode(8323);break;case 4:strMarkerColor=String.fromCharCode(8324);break;case 5:strMarkerColor=String.fromCharCode(8325);break;case 6:strMarkerColor=String.fromCharCode(8326);break;case 7:strMarkerColor=String.fromCharCode(8327);break;case 8:strMarkerColor=String.fromCharCode(8328);break;case 9:strMarkerColor=String.fromCharCode(8329)}l=j[v];l=l.replace(/&amp;/g,String.fromCharCode(726));l=l.replace(/&quot;/g,String.fromCharCode(698));l=l.replace(/&lt;/g,String.fromCharCode(753));l=l.replace(/&gt;/g,
String.fromCharCode(754));C="("+l+")";var P=RegExp(C,"g"+y);e=e.replace(/&amp;/g,String.fromCharCode(726));e=e.replace(/&quot;/g,String.fromCharCode(698));e=e.replace(/&lt;/g,String.fromCharCode(753));e=e.replace(/&gt;/g,String.fromCharCode(754));e=e.replace(P,function(Q){return String.fromCharCode(8261)+strMarkerColor+Q+String.fromCharCode(8262)});e=e.replace(/\u02D6/g,"&amp;");e=e.replace(/\u02BA/g,"&quot;");e=e.replace(/\u02F1/g,"&lt;");e=e.replace(/\u02F2/g,"&gt;");s++;if(s>=10)s=0}var R=RegExp("\u2046",
"g");e=e.replace(RegExp("\u2045([\u2080-\u2089])","g"),"<b>");e=e.replace(R,"</b>");e=e.replace(/\u2080/g,"0");e=e.replace(/\u2081/g,"1");e=e.replace(/\u2082/g,"2");e=e.replace(/\u2083/g,"3");e=e.replace(/\u2084/g,"4");e=e.replace(/\u2085/g,"5");e=e.replace(/\u2086/g,"6");e=e.replace(/\u2087/g,"7");e=e.replace(/\u2088/g,"8");e=e.replace(/\u2089/g,"9");e=e.replace(/\u00b6+/g,"");n.join("")==""&&n.push('<ul class="list impact">');n.push("<li>");n.push("<a href=\"javascript:fncOpenTopic('"+N+"', "+a+
');void(0);">');n.push(O);n.push("<span>");n.push("...");n.push(e);n.push("...");n.push("</span>");n.push("</a>");n.push("</li>")}}}}}n.join("")!=""&&n.push("</ul>");h.push('<input id="id_search_texts" style="display:None;" value="'+b+'" />');document.getElementById("id_search_results").innerHTML=h.join("")+n.join("");document.getElementById("id_search_results").style.backgroundColor="#FFFFFF";window.scroll(0,0);b=[];b.push('<div class="turn-page">');b.push('<span class="inner">');a>1&&b.push('<a onclick="fncDoSearch('+
(a-1)+');" class="left"></a> ');var t=parseInt(k/o);k%o!=0&&t++;o=1;g=t;if(a-r>1)o=a-r;if(document.getElementById("id_search_result_item")){r=[];if(k==0)r.push(fncGetNoneFoundMessage(d));else{var D;D=a*parseInt(fncGetConstantByName("search_show_result_count"))>k?k:a*parseInt(fncGetConstantByName("search_show_result_count"));r.push("<h2>"+fncGetSearchFoundMessage(d)+"<span>"+fncGetSearchCountMessage(a,D,k)+"</span></h2>")}document.getElementById("id_search_result_item").innerHTML=r.join("")}if(q>=
t){g=t;o=1}else if(a+B<=q)g=q;else if(a+B>=t){g=t;o=g-q+1}else g=a+B;for(c=o;c<=g;c++)a==c?b.push('<a onclick="fncDoSearch('+c+');" class="active">'+c+"</a>"):b.push('<a onclick="fncDoSearch('+c+');">'+c+"</a>");a+1<=t&&b.push(' <a onclick="fncDoSearch('+(a+1)+');" class="right"></a>');k!=0&&b.push('<div class="item-number">'+fncGetSearchCountMessageBottom(a,D,k)+"</div>");b.push("</span>");b.push("</div>");document.getElementById("id_search_status").innerHTML=b.join("");if(strWindowType=="HOME"){var S=
document.getElementById("id_search_texts").value;fncSetCookie("SEARCH-KEYWORD",S)}var L=fncGetCookie("SEARCH-RESULT-SETTING");if(""!=L){var M=L.split(":"),E=M[1];if(M[0]==a)""!=E&&undefined!=E&&window.setTimeout("fncSearchResultScroll("+E+")",10);else fncSearchResultScroll(0)}else fncSearchResultScroll(0)}}catch(T){}}
function fncGetNoneFoundMessage(a){var b=[];b.push("<h2>"+fncGetSearchFoundMessage(a)+"</h2>");b.push('<div class="guidance">');b.push("<h3>"+fncGetResourceByResourceId("search_none_found_message_title")+"</h3>");b.push("<p><b>"+fncGetResourceByResourceId("search_none_found_message_body")+"</b></p>");b.push("<ul>");for(a=1;fncGetResourceByResourceId("search_none_found_message_"+a)!="";){b.push("<li>"+fncGetResourceByResourceId("search_none_found_message_"+a)+"</li>");a++}b.push("</ul>");b.push("</div>");
document.getElementById("id_inner").style.display="none";return b.join("")}function fncSearchResultScroll(a){document.getElementById("id_search_results").scrollTop=a}function fncOpenTopic(a,b){try{var d=encodeURIComponent(document.getElementById("id_search").value),c=a+".html?search="+d;fncSetSearchResultsInfo(b);window.open(c,"_self")}catch(i){window.open(c)}}
function fncSetSearchResultsInfo(a){try{document.getElementById("id_search_results")&&strWindowType!="GLOSSARY"&&fncSetCookie("SEARCH-RESULT-SETTING",a+":"+document.getElementById("id_search_results").scrollTop)}catch(b){}}function fncGetConstantByName(a){try{return eval(constant)[0][a]}catch(b){}}function fncGetCookiePrefixName(){try{return"EMANUAL-"+fncGetResourceByResourceId("pub_number")+"-"}catch(a){}}
function fncSetCookie(a,b){try{document.cookie=fncGetCookiePrefixName()+a+"="+encodeURIComponent(b)+";path=/;"}catch(d){}}function fncGetCookie(a){try{for(var b=document.cookie.split("; "),d=b.length,c=0;c<d;c++){var i=b[c].split("=");if(fncGetCookiePrefixName()+a==i[0])if(i[1])return decodeURIComponent(i[1])}return""}catch(h){}}
function fncConvertSearchText(a,b){try{var d="",c=fncGetRegExpArray();a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");a=a.replace(/&amp;/g,"&");for(var i=a.length,h=0;h<i;h++){var g=a.substring(h,h+1),f="";if(g.match(/[\u005C]/)){var j=a.substring(h+1,h+2);if(g.match(/([$()\-^\\\|\[\]{},:+*.?])/)){f=fncGetRegExpString(g+j,c);h++}}else if(g.match(/[\uFF66-\uFF9F]/)){j=a.substring(h+1,h+2);if(j.match(/[\uFF9E-\uFF9F]/)){var m=g+j;f=fncGetRegExpString(m,c);if(f!=m)h+=j.length}}else if(g.match(/[A-Za-z0-9]/)){var k=
g.charCodeAt(0)+65248,o=String.fromCharCode(k);f="("+g+"|"+o+")"}else if(g.match(/[\uFF21-\uFF3A\uFF41-\uFF5A\uFF10-\uFF19]/)){var q=g.charCodeAt(0)-65248;m=String.fromCharCode(q);f="("+m+"|"+g+")"}if(f=="")f=fncGetRegExpString(g,c);d+=f}if(b){d=d.replace(/&/g,"&amp;");d=d.replace(/</g,"&lt;");d=d.replace(/>/g,"&gt;")}return d}catch(r){}}
function fncGetRegExpString(a,b){for(var d=a,c=fncGetRegExpSeparator(),i=b.length,h=0;h<i;h++){for(var g=b[h],f=g.split(c),j=f.length,m=0;m<j;m++)if(f[m]==a){d=g.replace(c,"|");d="("+d+")";break}if(d!=a)break}return d}
function fncGetRegExpArray(){var a=fncGetRegExpSeparator();return["\uff71"+a+"\u30a2","\uff72"+a+"\u30a4","\uff73"+a+"\u30a6","\uff74"+a+"\u30a8","\uff75"+a+"\u30aa","\uff76"+a+"\u30ab","\uff77"+a+"\u30ad","\uff78"+a+"\u30af","\uff79"+a+"\u30b1","\uff7a"+a+"\u30b3","\uff7b"+a+"\u30b5","\uff7c"+a+"\u30b7","\uff7d"+a+"\u30b9","\uff7e"+a+"\u30bb","\uff7f"+a+"\u30bd","\uff80"+a+"\u30bf","\uff81"+a+"\u30c1","\uff82"+a+"\u30c4","\uff83"+a+"\u30c6","\uff84"+a+"\u30c8","\uff85"+a+"\u30ca","\uff86"+a+"\u30cb",
"\uff87"+a+"\u30cc","\uff88"+a+"\u30cd","\uff89"+a+"\u30ce","\uff8a"+a+"\u30cf","\uff8b"+a+"\u30d2","\uff8c"+a+"\u30d5","\uff8d"+a+"\u30d8","\uff8e"+a+"\u30db","\uff8f"+a+"\u30de","\uff90"+a+"\u30df","\uff91"+a+"\u30e0","\uff92"+a+"\u30e1","\uff93"+a+"\u30e2","\uff94"+a+"\u30e4","\uff95"+a+"\u30e6","\uff96"+a+"\u30e8","\uff97"+a+"\u30e9","\uff98"+a+"\u30ea","\uff99"+a+"\u30eb","\uff9a"+a+"\u30ec","\uff9b"+a+"\u30ed","\uff9c"+a+"\u30ef","\uff66"+a+"\u30f2","\uff9d"+a+"\u30f3","\uff67"+a+"\u30a1","\uff68"+
a+"\u30a3","\uff69"+a+"\u30a5","\uff6a"+a+"\u30a7","\uff6b"+a+"\u30a9","\uff6f"+a+"\u30c3","\uff6c"+a+"\u30e3","\uff6d"+a+"\u30e5","\uff6e"+a+"\u30e7","\uff73\uff9e"+a+"\u30f4","\uff76\uff9e"+a+"\u30ac","\uff77\uff9e"+a+"\u30ae","\uff78\uff9e"+a+"\u30b0","\uff79\uff9e"+a+"\u30b2","\uff7a\uff9e"+a+"\u30b4","\uff7b\uff9e"+a+"\u30b6","\uff7c\uff9e"+a+"\u30b8","\uff7d\uff9e"+a+"\u30ba","\uff7e\uff9e"+a+"\u30bc","\uff7f\uff9e"+a+"\u30be","\uff80\uff9e"+a+"\u30c0","\uff81\uff9e"+a+"\u30c2","\uff82\uff9e"+
a+"\u30c5","\uff83\uff9e"+a+"\u30c7","\uff84\uff9e"+a+"\u30c9","\uff8a\uff9e"+a+"\u30d0","\uff8b\uff9e"+a+"\u30d3","\uff8c\uff9e"+a+"\u30d6","\uff8d\uff9e"+a+"\u30d9","\uff8e\uff9e"+a+"\u30dc","\uff8a\uff9f"+a+"\u30d1","\uff8b\uff9f"+a+"\u30d4","\uff8c\uff9f"+a+"\u30d7","\uff8d\uff9f"+a+"\u30da","\uff8e\uff9f"+a+"\u30dd","!"+a+"\uff01",'"'+a+"\u201d","#"+a+"\uff03","\\$"+a+"\uff04","%"+a+"\uff05","&"+a+"\uff06","'"+a+"\u2019","\\("+a+"\uff08","\\)"+a+"\uff09","\\*"+a+"\uff0a","\\+"+a+"\uff0b","\\,"+
a+"\uff0c","\\-"+a+"\uff0d","\\."+a+"\uff0e","/"+a+"\uff0f","\\:"+a+"\uff1a",";"+a+"\uff1b","<"+a+"\uff1c","="+a+"\uff1d",">"+a+"\uff1e","\\?"+a+"\uff1f","@"+a+"\uff20","\\["+a+"\uff3b","\\\\"+a+"\uffe5","\\]"+a+"\uff3d","\\^"+a+"\uff3e","_"+a+"\uff3f","`"+a+"\u2018","\\{"+a+"\uff5b","\\|"+a+"\uff5c","\\}"+a+"\uff5d","~"+a+"\uff5e","\uff61"+a+"\u3002","\uff62"+a+"\u300c","\uff63"+a+"\u300d","\uff64"+a+"\u3001","\uff65"+a+"\u30fb"]}function fncGetRegExpSeparator(){return"###Separator###"}
function fncGetSearchFoundMessage(a){return fncGetResourceByResourceId("search_found_message_1_prefix")+fncGetResourceByResourceId("search_word_open")+a+fncGetResourceByResourceId("search_word_close")+fncGetResourceByResourceId("search_found_message_1_suffix")}
function fncGetSearchCountMessage(a,b,d){return fncGetResourceByResourceId("search_found_count_message_open")+fncGetResourceByResourceId("search_found_count_message_prefix")+((a-1)*parseInt(fncGetConstantByName("search_show_result_count"))+1)+fncGetResourceByResourceId("search_found_sub_message_to")+b+fncGetResourceByResourceId("search_found_sub_message_1")+d+fncGetResourceByResourceId("search_found_count_message_suffix")+fncGetResourceByResourceId("search_found_count_message_close")}
function fncGetSearchCountMessageBottom(a,b,d){return fncGetResourceByResourceId("search_found_count_message_prefix")+((a-1)*parseInt(fncGetConstantByName("search_show_result_count"))+1)+fncGetResourceByResourceId("search_found_sub_message_to")+b+fncGetResourceByResourceId("search_found_sub_message_1")+d+fncGetResourceByResourceId("search_found_count_message_suffix")}function fncGetEncodeText(a){if(a!=null){a=a.replace(/&/g,"&amp;");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;")}return a}
String.prototype.trim=function(){return this.replace(/(^\s+|\s+$)/g,"")};
