function fncSearchKeyDown(a,c){try{document.all||a==13&&document.getElementById("id_search_button").click();if(c==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(d){}}
function fncOpenSubWindow(a,c){try{(c=="_blank"?window.open(a,c):window.open(a+"?sub=yes",c,"directories=no,location=no,menubar=no,status=no,toolbar=no,resizable=yes,width=640,top="+(screen.height/2-240)+",left="+(screen.width/2-320)+",height=480")).focus()}catch(d){}}function fncKeyPress(){try{event.keyCode==27&&window.close()}catch(a){}}
function fncGetTocNodeByLinkName(a){try{for(var c=eval(toc),d=c.length,b=0;b<d;b++){var e;if(c[b].link_name){e=c[b].link_name;if(e!=""){var f=e.indexOf("::");if(f!=-1)e=e.substring(f+2);if(e==a)return c[b]}}}return false}catch(i){}}function fncGetResourceByResourceId(a){try{for(var c=eval(resource),d=c.length,b=0;b<d;b++)if(c[b].id==a)return c[b].value;return""}catch(e){}}
function fncIncludeHeader(){try{if(header){for(var a=[],c=header.split(","),d=c.length,b=0;b<d;b++)switch(c[b]){case "|":a.push('<img class="header_vr" src="../frame_images/hdr_vr.gif" />');break;case "_SEARCH_":break;default:a.push('<a id="id_link_'+c[b]+'"></a>')}document.getElementById("id_header_include").innerHTML=a.join("")}}catch(e){}}
function fncIncludeFooter(){try{if(footer){for(var a=[],c=footer.split(","),d=c.length,b=0;b<d;b++)switch(c[b]){case "|":a.push('<img class="footer_vr" src="../frame_images/ftr_vr.gif" />');break;case "_PUBNO_":a.push('<span id="id_res_pub_number"></span>');break;default:a.push('<a id="id_link_'+c[b]+'"></a>')}document.getElementById("id_footer_include").innerHTML=a.join("")}}catch(e){}}
function fncLoadResource(){try{for(var a=eval(resource),c=a.length,d=0;d<c;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(b){}}
function fncResizeFrame(){try{var a=fncGetWindowWidth(),c=fncGetWindowHeight();if(document.getElementById("id_body")){document.getElementById("id_body").style.height=c-70+"px";document.getElementById("id_body").style.width=a+"px"}if(document.getElementById("id_footer")){document.getElementById("id_footer").style.top=c-26+"px";document.getElementById("id_footer").style.width=a+"px"}}catch(d){}}
function fncSearchBox(){try{if(document.getElementById("id_search")){if(document.getElementById("id_search").value==""){document.getElementById("id_search").value=fncGetResourceByResourceId("enter_search_keyword");document.getElementById("id_search").style.color="#808080"}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"}}}else if(document.getElementById("id_search_texts")){if(document.getElementById("id_search_texts").value==""){document.getElementById("id_search_texts").value=fncGetResourceByResourceId("enter_search_keyword");
document.getElementById("id_search_texts").style.color="#808080"}if(document.getElementById("id_search_texts").value==fncGetResourceByResourceId("enter_search_keyword"))document.getElementById("id_search_texts").style.color="#808080";document.getElementById("id_search_texts").onclick=function(){if(this.value==fncGetResourceByResourceId("enter_search_keyword")){this.value="";document.getElementById("id_search_texts").style.color="#000000"}};document.getElementById("id_search_texts").onblur=function(){if(this.value==
""){this.value=fncGetResourceByResourceId("enter_search_keyword");document.getElementById("id_search_texts").style.color="#808080"}}}}catch(a){}}var search;
function fncDoSearch(a){try{var c=document.getElementById("id_search").value;var d=c=c.trim();if(c==""||c==fncGetResourceByResourceId("enter_search_keyword"))document.getElementById("id_search_results").innerHTML=fncGetNoneFoundMessage();else{var b=/([$()\-^\\\|\[\]{},:+*.?])/g;if(b.exec(c)!=null)c=c.replace(b,"\\$1");b=/(&)/g;if(b.exec(c)!=null){c=c.replace(b,"&amp;");d=d.replace(b,"&amp;")}b=/(<)/g;if(b.exec(c)!=null){c=c.replace(b,"&lt;");d=d.replace(b,"&lt;")}b=/(>)/g;if(b.exec(c)!=null){c=c.replace(b,
"&gt;");d=d.replace(b,"&gt;")}var e=false,f=[],i=c.length;for(b=0;b<i;b++){var h=c.substring(b,b+1);if(h=='"'||h=="\u201d"||h=="\u201c"){h="";e=!e}else if(e&&(h==" "||h=="\u3000"||h=="\t"))h="___SPACE___";f.push(h)}c=f.join("");e=false;f=[];i=d.length;for(b=0;b<i;b++){h=d.substring(b,b+1);if(h=='"'||h=="\u201d"||h=="\u201c"){h="";e=!e}else if(e&&(h==" "||h=="\u3000"||h=="\t"))h="___SPACE___";f.push(h)}d=f.join("");h=/[\s\u3000]+/;var j=c.split(h),l=d.split(h);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}i=j.length;for(b=0;b<i;b++)j[b]=j[b].replace(/___SPACE___/g," ");i=l.length;for(b=0;b<i;b++)l[b]=l[b].replace(/___SPACE___/g," ");f=d="";if(document.getElementById("id_search_chapters")){var p=document.getElementById("id_search_chapters").getElementsByTagName("input");i=p.length;h=[];e=[];for(b=0;b<
i;b++)p[b].checked?h.push(p[b].id):e.push(p[b].id);if(h.length==i){d=h.join(",");f='<div class="search_scope_status">'+fncGetResourceByResourceId("search_scope")+fncGetResourceByResourceId("search_scope_all")+fncGetResourceByResourceId("search_scope_chapter")+"</div>"}else if(h.length!=0&&!document.getElementById("id_search_options_search_scope_all").checked){d=h.join(",");f='<div class="search_scope_status">'+fncGetResourceByResourceId("search_scope")+"<b>"+h.length+"</b>"+fncGetResourceByResourceId("search_scope_chapter")+
"</div>"}else{d=e.join(",");f='<div class="search_scope_status">'+fncGetResourceByResourceId("search_scope")+fncGetResourceByResourceId("search_scope_all")+fncGetResourceByResourceId("search_scope_chapter")+"</div>"}}var m=fncGetConstantByName("search_show_around");m||(m=50);h=p=m;var n=fncGetConstantByName("search_show_result_count");n||(n=10);var o=fncGetConstantByName("search_page_max_range");o||(o=5);var s=parseInt(o/2),B=parseInt(o/2);m=0;e=[];if(strWindowType!="GLOSSARY"){e.push(f);f=[];f.push('<div class="search_result_conditions">');
f.push(fncGetResourceByResourceId("search_result_conditions"));e.push('<div class="search_result_conditions" id="id_search_result_item"></div>')}var x=j.length;for(f=0;f<x;f++){var k=j[f];if(document.getElementById("id_search_options_multibyte"))if(document.getElementById("id_search_options_multibyte").checked){k=fncConvertSearchText(k,true);j[f]=k}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=""}i=search.length;for(b=0;b<i;b++){var t=search[b].body,D=search[b].toc_id,M=search[b].title,N=search[b].category;if(t){if(d!="")if(RegExp("("+N+")","i").exec(d)==null)continue;x=j.length;var E=[];for(f=0;f<x;f++){k=j[f];var v="("+k+")";if(strWindowType=="GLOSSARY")v="\\b("+k+")\\b";var F=RegExp(v,y);if(F.exec(t)==null)break;else{var w=t.search(F);if(w!=-1){var q="",G=t.substring(0,w),H=G.lastIndexOf("&");if(k!="&")if(H!=-1)q=G.substring(H);var u="",I=t.substring(w+l[f].length),J=I.indexOf(";");
if(l[f]!=";")if(J!=-1)u=I.substring(0,J+1);var z=q+l[f].toLowerCase()+u;if(z=="&amp;"||z=="&lt;"||z=="&gt;"||z=="&quot;")break;for(var A=t.substring(w-p,w+h);;)if(A.substring(0,1).match(/[\u0E31]|[\u0E47-\u0E4E]|[\u0E34-\u0E3A]/)!=null)A=A.substring(1);else break;E.push(A)}}if(f==j.length-1){m++;if(a*n>=m+0&&a*n-n<m+0){var g=E.join("...");for(u=q=0;u<x;u++){switch(q){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)}k=j[u];k=k.replace(/&amp;/g,String.fromCharCode(726));k=k.replace(/&quot;/g,String.fromCharCode(698));k=k.replace(/&lt;/g,String.fromCharCode(753));
k=k.replace(/&gt;/g,String.fromCharCode(754));v="("+k+")";if(strWindowType=="GLOSSARY")v="\\b("+k+")\\b";var O=RegExp(v,"g"+y);g=g.replace(/&amp;/g,String.fromCharCode(726));g=g.replace(/&quot;/g,String.fromCharCode(698));g=g.replace(/&lt;/g,String.fromCharCode(753));g=g.replace(/&gt;/g,String.fromCharCode(754));g=g.replace(O,function(P){return String.fromCharCode(8261)+strMarkerColor+P+String.fromCharCode(8262)});g=g.replace(/\u02D6/g,"&amp;");g=g.replace(/\u02BA/g,"&quot;");g=g.replace(/\u02F1/g,
"&lt;");g=g.replace(/\u02F2/g,"&gt;");q++;if(q>=10)q=0}var Q=RegExp("\u2046","g");g=g.replace(RegExp("\u2045([\u2080-\u2089])","g"),'<span class="hit hit_$1">');g=g.replace(Q,"</span>");g=g.replace(/\u2080/g,"0");g=g.replace(/\u2081/g,"1");g=g.replace(/\u2082/g,"2");g=g.replace(/\u2083/g,"3");g=g.replace(/\u2084/g,"4");g=g.replace(/\u2085/g,"5");g=g.replace(/\u2086/g,"6");g=g.replace(/\u2087/g,"7");g=g.replace(/\u2088/g,"8");g=g.replace(/\u2089/g,"9");g=g.replace(/\u00b6+/g,"");e.push('<div class="search_topic_title">');
e.push("&nbsp;");D==document.body.toc_id?e.push('<a class="current">'):e.push("<a href=\"javascript:fncOpenTopic('"+D+"', "+a+');void(0);">');e.push(M);e.push("</a>");e.push("</div>");e.push('<div class="search_topic_summary">');e.push("...");e.push(g);e.push("...");e.push("</div>")}}}}}e.push('<input id="id_search_texts" style="display:None;" value="'+c+'" />');document.getElementById("id_search_results").innerHTML=e.join("");document.getElementById("id_search_results").style.backgroundColor="#FFFFFF";
document.getElementById("id_search").select();c=[];c.push("<span>");a>1?c.push('<button accesskey="p" class="previous_active" onclick="fncDoSearch('+(a-1)+');">'+fncGetResourceByResourceId("search_prev")+"</button> "):c.push('<button disabled class="disabled">'+fncGetResourceByResourceId("search_prev")+"</button> ");var r=parseInt(m/n);m%n!=0&&r++;n=1;i=r;if(a-s>1)n=a-s;if(document.getElementById("id_search_result_item")){s=[];m==0?s.push(fncGetNoneFoundMessage()):s.push('<h1 class="result_title">'+
fncGetResourceByResourceId("search_found_message_1")+m+fncGetResourceByResourceId("search_found_message_2"));document.getElementById("id_search_result_item").innerHTML=s.join("")}if(o>=r){i=r;n=1}else if(a+B<=o)i=o;else if(a+B>=r){i=r;n=i-o+1}else i=a+B;for(b=n;b<=i;b++)a==b?c.push('<button class="page_current" onclick="fncDoSearch('+b+');">'+b+"</button>"):c.push('<button class="page" onclick="fncDoSearch('+b+');">'+b+"</button>");a+1<=r?c.push(' <button href="#" accesskey="n" class="next_active" onclick="fncDoSearch('+
(a+1)+');">'+fncGetResourceByResourceId("search_next")+"</button>"):c.push(' <button disabled class="disabled">'+fncGetResourceByResourceId("search_next")+"</button>");c.push("</span>");if(m!=0)document.getElementById("id_search_status").innerHTML=c.join("");if(strWindowType=="HOME"){var R=document.getElementById("id_search_texts").value;fncSetCookie("SEARCH-KEYWORD",R)}var K=fncGetCookie("SEARCH-RESULT-SETTING");if(""!=K){var L=K.split(":"),C=L[1];if(L[0]==a)""!=C&&undefined!=C&&window.setTimeout("fncSearchResultScroll("+
C+")",10);else fncSearchResultScroll(0)}else fncSearchResultScroll(0)}}catch(S){}}
function fncGetNoneFoundMessage(){var a=[];a.push('<h1 class="result_title">'+fncGetResourceByResourceId("search_none_found_message_title")+"</h1>");a.push('<div class="b">'+fncGetResourceByResourceId("search_none_found_message_body")+"</div>");a.push('<ul class="search_tips">');for(var c=1;fncGetResourceByResourceId("search_none_found_message_"+c)!="";){a.push("<li>"+fncGetResourceByResourceId("search_none_found_message_"+c)+"</li>");c++}a.push("</ul>");return a.join("")}
function fncSearchResultScroll(a){document.getElementById("id_search_results").scrollTop=a}function fncOpenTopic(a,c){try{var d=encodeURIComponent(document.getElementById("id_search").value),b=a+".html?search="+d;fncSetSearchResultsInfo(c);if(strWindowType=="GLOSSARY")b+="&word=yes";window.open(b,"_self")}catch(e){window.open(b)}}
function fncSetSearchResultsInfo(a){try{document.getElementById("id_search_results")&&strWindowType!="GLOSSARY"&&fncSetCookie("SEARCH-RESULT-SETTING",a+":"+document.getElementById("id_search_results").scrollTop)}catch(c){}}function fncGetConstantByName(a){try{return eval(constant)[0][a]}catch(c){}}function fncGetWindowWidth(){try{var a=window;if(window.opera)var c=a.innerWidth;else if(document.all)c=a.document.body.clientWidth;else if(document.getElementById)c=a.innerWidth;return c}catch(d){}}
function fncGetWindowHeight(){try{var a=window;if(window.opera)var c=a.innerHeight;else if(document.all)c=a.document.body.clientHeight;else if(document.getElementById)c=a.innerHeight;return c}catch(d){}}function fncGetCookiePrefixName(){try{return"EMANUAL-"+fncGetResourceByResourceId("pub_number")+"-"}catch(a){}}function fncSetCookie(a,c){try{document.cookie=fncGetCookiePrefixName()+a+"="+encodeURIComponent(c)+";path=/;"}catch(d){}}
function fncGetCookie(a){try{for(var c=document.cookie.split("; "),d=c.length,b=0;b<d;b++){var e=c[b].split("=");if(fncGetCookiePrefixName()+a==e[0])if(e[1])return decodeURIComponent(e[1])}return""}catch(f){}}
function fncConvertSearchText(a,c){try{var d="",b=fncGetRegExpArray();a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");a=a.replace(/&amp;/g,"&");for(var e=a.length,f=0;f<e;f++){var i=a.substring(f,f+1),h="";if(i.match(/[\u005C]/)){var j=a.substring(f+1,f+2);if(i.match(/([$()\-^\\\|\[\]{},:+*.?])/)){h=fncGetRegExpString(i+j,b);f++}}else if(i.match(/[\uFF66-\uFF9F]/)){j=a.substring(f+1,f+2);if(j.match(/[\uFF9E-\uFF9F]/)){var l=i+j;h=fncGetRegExpString(l,b);if(h!=l)f+=j.length}}else if(i.match(/[A-Za-z0-9]/)){var p=
i.charCodeAt(0)+65248,m=String.fromCharCode(p);h="("+i+"|"+m+")"}else if(i.match(/[\uFF21-\uFF3A\uFF41-\uFF5A\uFF10-\uFF19]/)){var n=i.charCodeAt(0)-65248;l=String.fromCharCode(n);h="("+l+"|"+i+")"}if(h=="")h=fncGetRegExpString(i,b);d+=h}if(c){d=d.replace(/&/g,"&amp;");d=d.replace(/</g,"&lt;");d=d.replace(/>/g,"&gt;")}return d}catch(o){}}
function fncGetRegExpString(a,c){for(var d=a,b=fncGetRegExpSeparator(),e=c.length,f=0;f<e;f++){for(var i=c[f],h=i.split(b),j=h.length,l=0;l<j;l++)if(h[l]==a){d=i.replace(b,"|");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###"}
String.prototype.trim=function(){return this.replace(/(^\s+|\s+$)/g,"")};
