var g_queryfilter_disable=false;var g_queryfilter_click=false;var g_queryfilter_status=false;if(window.Event){Event.prototype.__defineSetter__("returnValue",function(a){if(!a){this.preventDefault()}return a});Event.prototype.__defineSetter__("cancelBubble",function(a){if(a){this.stopPropagation()}return a});Event.prototype.__defineGetter__("srcElement",function(){var a=this.target;while(a!=null&&a.nodeType!=null&&a.nodeType!=1){a=a.parentNode}return a});Event.prototype.__defineGetter__("fromElement",function(){var a;if(this.type=="mouseover"){a=this.relatedTarget}else{if(this.type=="mouseout"){a=this.target}}if(!a){return}while(a.nodeType!=1){a=a.parentNode}return a});Event.prototype.__defineGetter__("toElement",function(){var a;if(this.type=="mouseout"){a=this.relatedTarget}else{if(this.type=="mouseover"){a=this.target}}if(!a){return}while(a.nodeType!=1){a=a.parentNode}return a});Event.prototype.__defineGetter__("offsetX",function(){return this.layerX});Event.prototype.__defineGetter__("offsetY",function(){return this.layerY})}if(window.Document){}if(window.Node){Node.prototype.replaceNode=function(a){this.parentNode.replaceChild(a,this)};Node.prototype.removeNode=function(b){if(b){return this.parentNode.removeChild(this)}else{var a=document.createRange();a.selectNodeContents(this);return this.parentNode.replaceChild(a.extractContents(),this)}};Node.prototype.swapNode=function(b){var c=this.nextSibling;var a=this.parentNode;node.parentNode.replaceChild(this,b);a.insertBefore(node,c)}}if(window.HTMLElement){HTMLElement.prototype.__defineGetter__("all",function(){var b=this.getElementsByTagName("*");var c=this;b.tags=function(a){return c.getElementsByTagName(a)};return b});HTMLElement.prototype.__defineGetter__("parentElement",function(){if(this.parentNode==this.ownerDocument){return null}return this.parentNode});HTMLElement.prototype.__defineGetter__("children",function(){var c=[];var a=0;var d;for(var b=0;b<this.childNodes.length;b++){d=this.childNodes[b];if(d.nodeType==1){c[a++]=d;if(d.name){if(!c[d.name]){c[d.name]=[]}c[d.name][c[d.name].length]=d}if(d.id){c[d.id]=d}}}return c});HTMLElement.prototype.__defineGetter__("currentStyle",function(){return this.ownerDocument.defaultView.getComputedStyle(this,null)});HTMLElement.prototype.__defineSetter__("outerHTML",function(b){var a=this.ownerDocument.createRange();a.setStartBefore(this);var c=a.createContextualFragment(b);this.parentNode.replaceChild(c,this);return b});HTMLElement.prototype.__defineGetter__("outerHTML",function(){var a;var b=this.attributes;var d="<"+this.tagName;for(var c=0;c<b.length;c++){a=b[c];if(a.specified){d+=" "+a.name+'="'+a.value+'"'}}if(!this.canHaveChildren){return d+">"}return d+">"+this.innerHTML+"</"+this.tagName+">"});HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){switch(this.tagName.toLowerCase()){case"area":case"base":case"basefont":case"col":case"frame":case"hr":case"img":case"br":case"input":case"isindex":case"link":case"meta":case"param":return false}return true});HTMLElement.prototype.__defineSetter__("innerText",function(b){var a=document.createTextNode(b);this.innerHTML=a;return a});HTMLElement.prototype.__defineGetter__("innerText",function(){var a=this.ownerDocument.createRange();a.selectNodeContents(this);return a.toString()});HTMLElement.prototype.__defineSetter__("outerText",function(b){var a=document.createTextNode(b);this.outerHTML=a;return a});HTMLElement.prototype.__defineGetter__("outerText",function(){var a=this.ownerDocument.createRange();a.selectNodeContents(this);return a.toString()});HTMLElement.prototype.attachEvent=function(c,b){var a=c.replace(/on/,"");b._ieEmuEventHandler=function(d){window.event=d;return b()};this.addEventListener(a,b._ieEmuEventHandler,false)};HTMLElement.prototype.detachEvent=function(c,b){var a=c.replace(/on/,"");if(typeof(b._ieEmuEventHandler)=="function"){this.removeEventListener(a,b._ieEmuEventHandler,false)}else{this.removeEventListener(a,b,true)}};HTMLElement.prototype.contains=function(a){do{if(a==this){return true}}while(a=a.parentNode);return false};HTMLElement.prototype.insertAdjacentElement=function(a,b){switch(a){case"beforeBegin":this.parentNode.insertBefore(b,this);break;case"afterBegin":this.insertBefore(b,this.firstChild);break;case"beforeEnd":this.appendChild(b);break;case"afterEnd":if(this.nextSibling){this.parentNode.insertBefore(b,this.nextSibling)}else{this.parentNode.appendChild(b)}break}};HTMLElement.prototype.insertAdjacentHTML=function(b,d){var c=this.ownerDocument.createRange();c.setStartBefore(this);var a=c.createContextualFragment(d);this.insertAdjacentElement(b,a)};HTMLElement.prototype.insertAdjacentText=function(b,c){var a=document.createTextNode(c);this.insertAdjacentElement(b,a)};HTMLElement.prototype.attachEvent=function(c,b){var a=c.replace(/on/,"");b._ieEmuEventHandler=function(d){window.event=d;return b()};this.addEventListener(a,b._ieEmuEventHandler,false)};HTMLElement.prototype.detachEvent=function(c,b){var a=c.replace(/on/,"");if(typeof(b._ieEmuEventHandler)=="function"){this.removeEventListener(a,b._ieEmuEventHandler,false)}else{this.removeEventListener(a,b,true)}}}function setCopyright(){var b=dojo.byId("copyright-span");if(b!=null){var a=new Date();var c=a.getFullYear();b.innerHTML="©"+c+" Patentics.com"}}function checkAll(a,c){for(var b=0;b<c.length;b++){if(c[b].type=="checkbox"){c[b].checked=a.checked}}}function hideParentDiv(a){a=a.parentNode;while(a&&a.tagName.toLowerCase()!="div"){a=a.parentNode}if(a){a.style.display="none"}}function hideParentTr(a){a=a.parentNode;while(a&&a.tagName.toLowerCase()!="tr"){a=a.parentNode}if(a){a.style.display="none"}}function findParentNode(d,a,b){for(var c=0;d&&c<b;++c){do{d=d.parentNode;if(d==null){return null}}while(d.tagName!=a.toUpperCase())}if(c==b){return d}else{return null}}function isChildOf(b,a){if(b==null||a==null){return false}do{b=b.parentNode;if(b==null){return false}else{if(b==a){return true}}}while(true)}function findSiblingBefore(d,a,b){for(var c=0;d&&c<b;++c){do{d=d.previousSibling}while(d&&d.tagName!=a.toUpperCase())}if(c==b){return d}else{return null}}function findSiblingAfter(d,a,b){for(var c=0;d&&c<b;++c){do{d=d.nextSibling}while(d&&d.tagName!=a.toUpperCase())}if(c==b){return d}else{return null}}function getFormElementValue(d,b){var a=d.elements;for(var c=0;c<a.length;++c){if(a[c].name==b&&a[c].checked){return a[c].value}}return c_sC}function setFormElementValue(d,b,e){var a=d.elements;for(var c=0;c<a.length;++c){if(a[c].name==b){if(a[c].type=="radio"||a[c].type=="checkbox"){if(e!=a[c].value){continue}else{a[c].checked=true;break}}else{a[c].value=e}}}}function bbimg(b){var a=parseInt(b.style.zoom,10)||100;a+=event.wheelDelta/12;if(a>0){if(parseFloat(b.style.zoom)>parseFloat(a)||(b.width*parseInt(a)/100<document.body.clientWidth)){b.style.zoom=a+"%"}}return false}function showSlaveDiv(g,e,h,d,c){var b=dijit.byId(h);if(b==null){return}var f=dijit.byId(e);var a=dijit.byId(g);if(!c||b.sizeShare*(100-d)<f.sizeShare*d){dijit.byId(e).sizeShare=100-d;dijit.byId(h).sizeShare=d;dijit.byId(g).layout();if(d==100){dojo.byId("slave-restore").style.display="";dojo.byId("slave-max").style.display="none"}else{dojo.byId("slave-restore").style.display="none";dojo.byId("slave-max").style.display=""}}}function textContentToSearch(c){var b="";if(c==null){return b}for(var a=0;a<c.childNodes.length;a++){switch(c.childNodes[a].nodeType){case 1:case 5:if(c.childNodes[a].tagName=="SUP"||c.childNodes[a].tagName=="SUB"){b+=" ";b+=textContentToSearch(c.childNodes[a]);b+=" "}else{b+=textContentToSearch(c.childNodes[a])}break;case 3:case 2:case 4:b+=c.childNodes[a].nodeValue;break;default:break}}return b}function getAdjacentText(c,a){var d="";if(!c&&!a){return d}var b;if(!c){b=a.previousSibling}else{b=c.nextSibling}var e=false;while(!e){switch(b.nodeType){case 1:case 5:d+=textContentToSearch(b);break;case 3:case 2:case 4:d+=b.nodeValue;break;default:break}b=b.nextSibling;if(!b){e=true}else{if(b==a){e=true}else{if(!a&&b.nodeType==1&&b.tagName=="BR"){e=true}}}}return d}function htmlEncode(a){return(a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ /g,"&nbsp;").replace(/\r\n/g,"<br/>"))}function htmlDecode(a){return(a.replace(/<br\/?>/ig,"\r\n").replace(/&nbsp;/ig," ").replace(/&gt;/ig,">").replace(/&lt;/ig,"<").replace(/&amp;/ig,"&"))}function isNullorEmpty(a){if(typeof(a)=="undefined"){return true}if(!a){return true}return(a==null||a=="undefined"||a=="null")}function getElementByClassName(c,a,b){if(c==null||isNullorEmpty(a)||isNullorEmpty(b)){return null}}function getNormalizedPN(a){if(basic_search){return a}var b=getConfig(NORMALIZE_PN_CONFIG);if(!b){return a}if(isNullorEmpty(a)){return a}a=a.replace(/,/g,"").replace(/US/,"");if(a.indexOf("/")!=-1){a=a.substring(0,a.indexOf("/"))+a.substring(a.indexOf("/")+1,a.length)}if(parseInt(a)>10000000&&parseInt(a)<200000000){a="200"+a}return a}function getElementsByClassName(d,a,c){if(d==null||isNullorEmpty(a)||isNullorEmpty(c)){return null}var e=d.getElementsByTagName(a);if(e.length==0){return}for(var b=0;b<e.length;b++){if(e[b].className.toLowerCase()==c.toLowerCase()){return e[b]}}return null}function getPatentNumIDI(a,c){if(isNullorEmpty(a)){return -1}var b=getConfig(NORMALIZE_PN_CONFIG);if(!b){if(a.indexOf("CN")==0||a.indexOf("CK")==0||(parseInt(a)>=200000000&&parseInt(a)<219000000)){return 12}if(parseInt(a)>450000000){return 128}return 48}if(a.indexOf("##")!=-1||a.indexOf("%23%23")!=-1){return 12}a=a.toUpperCase().replace(/'/g,"");if(a.indexOf("CN")==0||a.indexOf("CK")==0||(parseInt(a)>=200000000&&parseInt(a)<220000000)){return 12}if(a.indexOf("EP")==0||(parseInt(a)>=10060000&&parseInt(a)<15000000)){return 16+64}if(a.indexOf("WO")==0||parseInt(a)>=15000000&&parseInt(a)<20000000){return 32+64}if((a.indexOf("U")==0&&a.indexOf("US")!=0)||(parseInt(a)>=300000000&&parseInt(a)<=10000000000)){return -(128+12)}if(c){return 3}else{if((a.length==11&&a.substring(0,3)=="200")||(parseInt(a)>10000000&&parseInt(a)<200000000)){return 2}else{if(parseInt(a)>=220000000&&parseInt(a)<300000000){return 64}else{if(a.charAt(0)>"0"&&a.charAt(0)<="9"){return 1}}}}return 64}function setDisplay(b,a){if(b!=null){b.style.display=a}}function setVisible(b,a){if(b!=null){b.style.visibility=a}}function setPageViewDisplay(d){if(dojo.isIE&&window.external&&isClient){if(d!="search"){window.external.Sync(2);window.external.Sync(4)}else{var x=dojo.byId("querylist-queryresult-table-SEARCH-MASTER");var a=dojo.byId("querylist-queryresult-table-SEARCH-SLAVE");var M=2;var w=4;if(x!=null&&x.style.display==""){var k=x.getElementsByTagName("tr");if(k!=null&&k.length>1){M=3}}window.external.Sync(M);if(a!=null&&a.style.display==""){var k=a.getElementsByTagName("tr");if(k!=null&&k.length>1){w=5}}window.external.Sync(w)}}commandDown();toReadDown();g_currentView=d;if(g_currentView!="search"&&g_currentView!=null){showSlaveDiv("index-right","index-master","index-slave",0,false)}if(dojo.byId("popupdiv-searchhelp")!=null&&dojo.byId("popupdiv-searchhelp").style.visibility=="visible"){dojo.byId("popupdiv-searchhelp").comObject.hidePopup()}if(dojo.byId("search-popupdiv")!=null){dojo.byId("search-popupdiv").style.visibility="hidden"}if(dojo.byId("search-inputtipsdiv")!=null){dojo.byId("search-inputtipsdiv").style.visibility="hidden"}if(dojo.byId("popupdiv-highlightword")!=null){dojo.byId("popupdiv-highlightword").style.visibility="hidden"}if(dojo.byId("search-bookmark-popupdiv")!=null){dojo.byId("search-bookmark-popupdiv").style.visibility="hidden"}if(dojo.byId("popupdiv-importpatent")!=null){dojo.byId("popupdiv-importpatent").style.visibility="hidden"}if(Query_JS){closeClipboardFigDiv();closeClipboardPNDiv()}var y=dojo.byId("search-master-querylist");var G=dojo.byId("classinfo-div");var s=dojo.byId("project-projectlist");var F=dojo.byId("help-helpdiv");var t=dojo.byId("statistic-statisticlist");var l=dojo.byId("history-historylist");var B=dojo.byId("history-div-historytype-h");var D=dojo.byId("history-div-historytype-b");var m=dojo.byId("history-historylist-unlogin");var c=dojo.byId("document-documentlist");var g=dojo.byId("login-form-div");var e=dojo.byId("signup-form-div");var L=dojo.byId("queryrelated-cluster-div");var K=dojo.byId("queryrelated-cluster-div-SEARCH-MASTER");var H=dojo.byId("queryrelated-cluster-div-SEARCH-SLAVE");var b=dojo.byId("search-master-subget");var f=dojo.byId("querylist-queryresultstat-div-SEARCH-MASTER");var I=dojo.byId("querylist-queryresultstat-div-SEARCH-SLAVE");var v=dojo.byId("shadowDiv");var z=dojo.byId("management-div");var p=dojo.byId("search-basicsearch-div");var u=dojo.byId("doc_upload");var z=dojo.byId("management-div");setDisplay(u,"none");setDisplay(y,"none");setDisplay(G,"none");setDisplay(s,"none");setDisplay(F,"none");setDisplay(t,"none");setDisplay(l,"none");setDisplay(B,"none");setDisplay(D,"none");setDisplay(m,"none");setDisplay(c,"none");setDisplay(g,"none");setDisplay(v,"none");setDisplay(e,"none");setVisible(e,"hidden");setDisplay(L,"none");setDisplay(H,"none");setDisplay(K,"none");setDisplay(z,"none");setDisplay(b,"none");var q=dojo.byId("header-menu-search");var C=dojo.byId("header-menu-class");var A=dojo.byId("header-menu-statistic");var J=dojo.byId("header-menu-analysis");var h=dojo.byId("header-menu-history");var E=dojo.byId("header-menu-project");var j=dojo.byId("header-menu-manage");q.innerHTML=c_sSearch;C.innerHTML=c_sClass;A.innerHTML=c_sStatistic;J.innerHTML=c_sAnalysis;h.innerHTML=c_sHistory;E.innerHTML=c_sProject;j.innerHTML=c_sManage;switch(g_currentView){case"search":q.innerHTML="<b>"+c_sSearch+"</b>";y.style.display="";if(basic_search){setDisplay(p,"")}break;case"statistic":A.innerHTML="<b>"+c_sStatistic+"</b>";if(StatisticStatisticlist_Load==false){LoadStatisticsJsFile();dload("statistic-statisticlist","statistic.htm");StatisticStatisticlist_Load=true;initGlobalVal()}LoadQueryJsFile();if(t==null){t=dojo.byId("statistic-statisticlist")}t.style.display="";var i=true;var o=dojo.byId("searchtype-span").typevalue;if((o&1)==1){dojo.byId("statistic-type-select").value=1}else{if((o&2)==2){dojo.byId("statistic-type-select").value=2}else{if((o&4)==4){dojo.byId("statistic-type-select").value=4}else{if((o&8)==8){dojo.byId("statistic-type-select").value=8}else{if((o&16)==16){dojo.byId("statistic-type-select").value=16}else{if((o&32)==32){dojo.byId("statistic-type-select").value=32}else{if((o&64)==64){dojo.byId("statistic-type-select").value=64}}}}}}}if(i){onStatTypeChange()}break;case"analysis":LoadDocumentJsFile();J.innerHTML="<b>"+c_sAnalysis+"</b>";c.style.display="";break;case"history":LoadHistoryJsFile();if(HistoryHistorylist_Load){B=dojo.byId("history-div-historytype-h");D=dojo.byId("history-div-historytype-b")}h.innerHTML="<b>"+c_sHistory+"</b>";l.style.display="";B.style.display="";break;case"project":E.innerHTML="<b>"+c_sProject+"</b>";s.style.display="";break;case"login":var n=dojo.byId("login-result-div");var r="";if(basic_search!=null){r=getDatabaseSpan()}n.innerHTML=r+g_loginSpan;n.style.display="";prepareLogin();break;case"signup":if(SignupForm_Load==false){dload("signup-form-div","signup.htm");SignupForm_Load=true}e.style.display="";break;case"help":helpmenu.innerHTML="<b>"+c_sHelp+"</b>";F.style.display="";break;case"manage":LoadManageJsFile();j.innerHTML="<b>"+c_sManage+"</b>";z=dojo.byId("management-div");z.style.display="";break;case"class":LoadClassJsFile();C.innerHTML="<b>"+c_sClass+"</b>";if(Classinfo_Load==false){dload("classinfo-div","class.htm");LoadQueryJsFile();Classinfo_Load=true}SetSystemDynamicDisplayByFuncArray("Class");G.style.display="";changeClassInfoType();break;case null:break}if(g_currentView!="search"){onSelectTypeChange(null)}}function setPageView(b,a){if(b=="manage"){if(dojo.byId("searchrelated")!=null){dojo.byId("searchrelated").style.display="none"}if(dojo.byId("managerelated")!=null){dojo.byId("managerelated").style.display=""}}else{hideAllManageDiv();if(dojo.byId("searchrelated")!=null){dojo.byId("searchrelated").style.display=""}if(dojo.byId("managerelated")!=null){dojo.byId("managerelated").style.display="none"}}if(b=="login"){prepareLogin();return}if(!a&&g_currentView!="login"){g_previousView=g_currentView}if(b=="search"){}setPageViewDisplay(b);if(b!="search"){if(dojo.byId("popupdiv-clipboardtoppn")!=null){dojo.byId("popupdiv-clipboardtoppn").style.visibility="hidden"}var c={pageview:b,back:function(){setPageViewDisplay(this.pageview);if(this.pageview=="project"||this.pageview=="history"||this.pageview=="class"){getUserLoginState()}},forward:function(){setPageViewDisplay(this.pageview);if(this.pageview=="project"||this.pageview=="history"||this.pageview=="class"){getUserLoginState()}}};dojo.back.addToHistory(c)}if(a){getUserLoginState()}}function showhelp(){var a="invokexml.do?sf=UserGet";var b={url:a,handleAs:"text",load:function(d,c){dojo.byId("help-helpdiv").innerHTML=XSLTtrans(d,c_sXslFileHelp)}};dojo.xhrGet(b)}function showmanage(){var a="invokexml.do?sf=UserGet";var b={url:a,handleAs:"text",load:function(d,c){dojo.byId("manage-managediv").innerHTML=XSLTtrans(d,c_sXslFileManage);dojo.byId("deluser-form").style.display="";dojo.byId("adduser-form").style.display="";dojo.byId("permission-div").style.display="";permission_list()}};dojo.xhrGet(b)}function showAdvancedSearch(){var a="invokexml.do?sf=UserGet";var b={url:a,handleAs:"text",load:function(d,c){dojo.byId("search-advancedsearch-div").innerHTML=XSLTtrans(d,c_sXslFileAdvancedSearch)}};dojo.xhrGet(b)}function showAdvancedInputSearch(){var a="invokexml.do?sf=UserGet";var b={url:a,handleAs:"text",load:function(d,c){dojo.byId("search-advancedinput-div").innerHTML=XSLTtrans(d,c_sXslFileAdvancedInputSearch)}};dojo.xhrGet(b)}function showBooleanInputSearch(){}function showNewUserSearch(){var a="invokexml.do?sf=UserGet";var b={url:a,handleAs:"text",load:function(d,c){dojo.byId("search-newuser-div").innerHTML=XSLTtrans(d,c_sXslFileNewUserSearch)}};dojo.xhrGet(b)}function calculateOffset(b,a){var c=0;while(b){c+=b[a];b=b.offsetParent}return c}function XSLTtrans(k,d){var o;var g;if(dojo.isSafari||(dojo.isWebKit&&!(dojo.isSafari<4))){XMLDocument.prototype.load=function(q){var p=new XMLHttpRequest();p.open("GET",q,false);p.setRequestHeader("Content-Type","text/xml");p.send(null);var e=p.responseXML;if(e){var r=this.importNode(e.documentElement,true);this.appendChild(r);return true}};var a=new DOMParser();o=a.parseFromString(k,"text/xml");var l=document.implementation.createDocument("","",null);l.async=false;l.load(d);var b=new XSLTProcessor();b.importStylesheet(l);b.setParameter(null,"testDom",o);var m=b.transformToFragment(o,document);var j=document.createElement("div");j.appendChild(m);return j.innerHTML}else{if(document.implementation&&document.implementation.createDocument){try{var a=new DOMParser();o=a.parseFromString(k,"text/xml")}catch(i){return"XML Document create error"}try{g=document.implementation.createDocument("","",null);g.async=false;g.load(d)}catch(i){return"XSL Document load error"}try{var h=new XSLTProcessor();h.importStylesheet(g);var f=h.transformToFragment(o,document);var c=document.createElement("div");c.appendChild(f);return c.innerHTML}catch(i){return"XSLT Transformation error"}}else{if(typeof window.ActiveXObject!="undefined"){o=new ActiveXObject("Microsoft.XMLDOM");g=new ActiveXObject("Microsoft.XMLDOM");o.async=false;g.async=false;o.loadXML(k);g.load(d);var n=o.documentElement.transformNode(g);return n}else{return"Sorry, your browser does not support XSLT trnsformation. Please try IE 5.5+ or Firefox 1.5+"}}}}function strContainChinese(b){if(isNullorEmpty(b)){return false}var a=b.replace(/[^\x00-\x80]/ig,"");return(b!=a)}function onCheckboxImgMouseOver(a){if(a.src.indexOf("check.gif")!=-1){a.src=c_sImgPath+"img/check-active.gif"}}function onCheckboxImgMouseOut(a){if(a.src.indexOf("check-active.gif")!=-1){a.src=c_sImgPath+"img/check.gif"}}function isMSIE(){if(navigator.userAgent.indexOf("MSIE")){return true}else{return false}}function SetSystemInitDisplayByFuncArray(){if(dojo.byId("search-master-database-radio")!=null){dojo.byId("search-master-database-radio").style.display=(g_funcArray[140]==1?"none":"")}for(var b=0;b<DatabaseCount;b++){if(dojo.byId("searchtype-"+spanType[b])!=null){dojo.byId("searchtype-"+spanType[b]).style.display=(g_funcArray[b]==0?"none":"");dojo.byId("searchtype-"+spanType[b]+"-span").style.display=(g_funcArray[b]==0?"none":"")}}if(dojo.byId("header-menu-home")!=null){dojo.byId("header-menu-home").style.display=(g_funcArray[15]==0?"none":"")}if(dojo.byId("header-menu-search")!=null){dojo.byId("header-menu-sep1").style.display=((g_funcArray[16]==0||g_funcArray[15]==0)?"none":"");dojo.byId("header-menu-search").style.display=(g_funcArray[16]==0?"none":"")}if(dojo.byId("header-menu-class")!=null){dojo.byId("header-menu-class").style.display=(g_funcArray[17]==0?"none":"");dojo.byId("header-menu-sep2").style.display=(g_funcArray[17]==0?"none":"")}if(dojo.byId("header-menu-statistic")!=null){dojo.byId("header-menu-statistic").style.display=(g_funcArray[18]==0?"none":"");dojo.byId("header-menu-sep3").style.display=(g_funcArray[18]==0?"none":"")}if(dojo.byId("header-menu-analysis")!=null){dojo.byId("header-menu-analysis").style.display=(g_funcArray[19]==0?"none":"");dojo.byId("header-menu-sep4").style.display=(g_funcArray[19]==0?"none":"")}if(dojo.byId("header-menu-history")!=null){dojo.byId("header-menu-history").style.display=(g_funcArray[20]==0?"none":"");dojo.byId("header-menu-sep5").style.display=(g_funcArray[20]==0?"none":"")}if(dojo.byId("header-menu-project")!=null){dojo.byId("header-menu-project").style.display=(g_funcArray[21]==0?"none":"");dojo.byId("header-menu-sep6").style.display=(g_funcArray[21]==0?"none":"");if(dojo.byId("popupdiv-clipboardpn-project")!=null){dojo.byId("popupdiv-clipboardpn-project").style.display=(g_funcArray[21]==0?"none":"")}if(dojo.byId("popupdiv-clipboardfig-project")!=null){dojo.byId("popupdiv-clipboardfig-project").style.display=(g_funcArray[21]==0?"none":"")}}if(dojo.byId("search-master-import-img")!=null){dojo.byId("search-master-import-img").style.display=(g_funcArray[39]==0?"none":"")}if(dojo.byId("search-master-advancesearch-span")!=null){dojo.byId("search-master-advancesearch-span").style.display=""}if(dojo.byId("statistic-tab-td-Research")!=null){dojo.byId("statistic-tab-td-Research").style.display=(g_funcArray[115]==0?"none":"");dojo.byId("statistic-tab-td-Research-next").style.display=(g_funcArray[115]==0?"none":"")}if(dojo.byId("statistic-tab-td-Claims")!=null){dojo.byId("statistic-tab-td-Claims").style.display=(g_funcArray[116]==0?"none":"");dojo.byId("statistic-tab-td-Claims-next").style.display=(g_funcArray[116]==0?"none":"")}if(dojo.byId("statistic-tab-td-PDF")!=null){dojo.byId("statistic-tab-td-PDF").style.display=(g_funcArray[117]==0?"none":"");dojo.byId("statistic-tab-td-PDF-next").style.display=(g_funcArray[117]==0?"none":"")}if(dojo.byId("statistic-tab-td-Comment")!=null){dojo.byId("statistic-tab-td-Comment").style.display=(g_funcArray[118]==0?"none":"")}if(dojo.byId("search-popupdiv-color-tr")!=null){dojo.byId("search-popupdiv-color-tr").style.display=(g_funcArray[83]==0?"none":"")}if(dojo.byId("bbs-span")!=null){dojo.byId("bbs-seperator-span").style.display=(g_funcArray[150]==0?"none":"");dojo.byId("bbs-span").style.display=(g_funcArray[150]==0?"none":"")}if(dojo.byId("fulltext-view-span-slave")!=null){dojo.byId("fulltext-view-span-slave").style.display=(g_funcArray[142]==0?"none":"")}if(dojo.byId("fulltext-view-span-master")!=null){dojo.byId("fulltext-view-span-master").style.display=(g_funcArray[142]==0?"none":"")}if(dojo.widget!=null){var d=dijit.byId("contextmenu");if(d!=null){var a=new Array("nsmenuitem","rsmenuitem","webmenuitem","ptmenuitem","clsmenuitem","cpmenuitem","pastemenuitem");for(var b=130;b<137;b++){if(g_funcArray[b]==0){var c=dijit.byId(a[b-130]);if(c!=null){d.removeChild(c)}}}}}if(g_funcArray[61]==0){dojo.byId("search-master-addtocase-img").style.display="none"}if(g_funcArray[62]==0){dojo.byId("search-slave-addtocase-img").style.display="none"}}function SetSystemDynamicDisplayByFuncArray(e,f){if(e=="QueryFulltext_SEARCH-MASTER"||e=="QueryFulltext_SEARCH-SLAVE"||e=="QueryFulltext_SEARCH-PATENT"){if(dojo.byId("search-input-topquery-span")!=null){dojo.byId("search-input-topquery-span").style.display=(g_funcArray[38]==0?"none":"")}if(dojo.byId("search-input-topquery")!=null){dojo.byId("search-input-topquery").style.display=(g_funcArray[38]==0?"none":"")}if(dojo.byId("search-input-topquery-button")!=null){dojo.byId("search-input-topquery-button").style.display=(g_funcArray[38]==0?"none":"")}if(e=="QueryFulltext_SEARCH-MASTER"){if(dojo.byId("queryfulltext_addtoproject_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_addtoproject_SEARCH-MASTER").style.display=(g_funcArray[30]==0?"none":"")}if(dojo.byId("queryfulltext_querystat_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_querystat_SEARCH-MASTER").style.display=(g_funcArray[31]==0?"none":"")}if(dojo.byId("queryfulltext_statdrawing_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_statdrawing_SEARCH-MASTER").style.display=(g_funcArray[32]==0?"none":"")}if(dojo.byId("queryfulltext_clusterpatent_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_clusterpatent_SEARCH-MASTER").style.display=(g_funcArray[33]==0?"none":"")}if(dojo.byId("queryfulltext_rotatesearch_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_rotatesearch_SEARCH-MASTER").style.display=(g_funcArray[34]==0?"none":"")}if(dojo.byId("queryfulltext_exportpatent_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_exportpatent_SEARCH-MASTER").style.display=(g_funcArray[35]==0?"none":"")}if(dojo.byId("queryfulltext_addtoclipboard_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_addtoclipboard_SEARCH-MASTER").style.display=(g_funcArray[36]==0?"none":"")}if(dojo.byId("queryfulltext_addtoclipboard_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_addtoclipboard_SEARCH-MASTER").style.display=(g_funcArray[36]==0?"none":"")}if(dojo.byId("queryfulltext_comparetoppatents_SEARCH-MASTER")!=null){dojo.byId("queryfulltext_comparetoppatents_SEARCH-MASTER").style.display=(g_funcArray[41]==0?"none":"")}if(dojo.byId("doPatentMap_SEARCH-MASTER")!=null){dojo.byId("doPatentMap_SEARCH-MASTER").style.display=(g_funcArray[40]==0?"none":"")}}else{if(e=="QueryFulltext_SEARCH-SLAVE"){if(dojo.byId("queryfulltext_addtoproject_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_addtoproject_SEARCH-SLAVE").style.display=(g_funcArray[30]==0?"none":"")}if(dojo.byId("queryfulltext_querystat_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_querystat_SEARCH-SLAVE").style.display=(g_funcArray[31]==0?"none":"")}if(dojo.byId("queryfulltext_statdrawing_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_statdrawing_SEARCH-SLAVE").style.display=(g_funcArray[32]==0?"none":"")}if(dojo.byId("queryfulltext_clusterpatent_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_clusterpatent_SEARCH-SLAVE").style.display=(g_funcArray[33]==0?"none":"")}if(dojo.byId("queryfulltext_rotatesearch_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_rotatesearch_SEARCH-SLAVE").style.display=(g_funcArray[34]==0?"none":"")}if(dojo.byId("queryfulltext_exportpatent_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_exportpatent_SEARCH-SLAVE").style.display=(g_funcArray[35]==0?"none":"")}if(dojo.byId("queryfulltext_addtoclipboard_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_addtoclipboard_SEARCH-SLAVE").style.display=(g_funcArray[36]==0?"none":"")}if(dojo.byId("queryfulltext_mail_SEARCH-SLAVE")!=null){dojo.byId("queryfulltext_mail_SEARCH-SLAVE").style.display=(g_funcArray[37]==0?"none":"")}if(dojo.byId("doPatentMap_SEARCH-SLAVE")!=null){dojo.byId("doPatentMap_SEARCH-SLAVE").style.display=(g_funcArray[40]==0?"none":"")}}else{if(e=="QueryFulltext_SEARCH-PATENT"){if(dojo.byId("queryfulltext_addtoproject_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_addtoproject_SEARCH-PATENT").style.display=(g_funcArray[30]==0?"none":"")}if(dojo.byId("queryfulltext_querystat_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_querystat_SEARCH-PATENT").style.display=(g_funcArray[31]==0?"none":"")}if(dojo.byId("queryfulltext_statdrawing_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_statdrawing_SEARCH-PATENT").style.display=(g_funcArray[32]==0?"none":"")}if(dojo.byId("queryfulltext_clusterpatent_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_clusterpatent_SEARCH-PATENT").style.display=(g_funcArray[33]==0?"none":"")}if(dojo.byId("queryfulltext_rotatesearch_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_rotatesearch_SEARCH-PATENT").style.display=(g_funcArray[34]==0?"none":"")}if(dojo.byId("queryfulltext_exportpatent_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_exportpatent_SEARCH-PATENT").style.display=(g_funcArray[35]==0?"none":"")}if(dojo.byId("queryfulltext_addtoclipboard_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_addtoclipboard_SEARCH-PATENT").style.display=(g_funcArray[36]==0?"none":"")}if(dojo.byId("queryfulltext_mail_SEARCH-PATENT")!=null){dojo.byId("queryfulltext_mail_SEARCH-PATENT").style.display=(g_funcArray[37]==0?"none":"")}if(dojo.byId("doPatentMap_SEARCH-MASTER")!=null){dojo.byId("doPatentMap_SEARCH-MASTER").style.display=(g_funcArray[40]==0?"none":"")}}}}}else{if(e=="QueryTab"){var h=f.getElementsByTagName("img");for(var g=0;g<h.length;g++){switch(h[g].name){case"refinebypn":if(g_funcArray[45]==0){h[g].style.display="none"}break;case"scoretoppn":if(g_funcArray[46]==0){h[g].style.display="none"}break;case"nrefinebypn":if(g_funcArray[47]==0){h[g].style.display="none"}break;case"settotop":if(g_funcArray[48]==0){h[g].style.display="none"}break;case"copypatent":if(g_funcArray[49]==0){h[g].style.display="none"}break;case"importpatent":if(g_funcArray[50]==0){h[g].style.display="none"}break;case"showpatent":if(g_funcArray[51]==0){h[g].style.display="none"}break}}}else{if(e=="QueryRelated_SEARCH-MASTER"){if(dojo.byId("queryrelated_searchmaster_prev")!=null){dojo.byId("queryrelated_searchmaster_prev").style.display=(g_funcArray[71]==0?"none":"")}if(dojo.byId("queryrelated_searchmaster_next")!=null){dojo.byId("queryrelated_searchmaster_next").style.display=(g_funcArray[71]==0?"none":"")}if(dojo.byId("queryrelated_searchmaster_cluster")!=null){dojo.byId("queryrelated_searchmaster_cluster").style.display=(g_funcArray[70]==0?"none":"")}if(dojo.byId("queryrelated_searchmaster_anlist")!=null){dojo.byId("queryrelated_searchmaster_anlist").style.display=(g_funcArray[72]==0?"none":"")}}else{if(e=="QueryRelated_SEARCH-SLAVE"){if(dojo.byId("queryrelated_searchslave_prev")!=null){dojo.byId("queryrelated_searchslave_prev").style.display=(g_funcArray[71]==0?"none":"")}if(dojo.byId("queryrelated_searchslave_next")!=null){dojo.byId("queryrelated_searchslave_next").style.display=(g_funcArray[71]==0?"none":"")}}else{if(e=="UserLogin"){if(dojo.byId("search-master-searchfilter-span")!=null){dojo.byId("search-master-searchfilter-span").style.display=(g_funcArray[80]==0?"none":"")}if(dojo.byId("project-quick-projectlist")!=null){dojo.byId("project-quick-projectlist").style.display=(g_funcArray[82]==0?"none":"");if(g_funcArray[82]==1){loadQuickProject();initProjectIdColorPair()}}if(dojo.byId("bookmark-quick-bookmarklist")!=null){dojo.byId("bookmark-quick-bookmarklist").style.display=(g_funcArray[60]==0?"none":"");if(g_funcArray[60]==1){loadBookmarkCombobox("search-bookmark-select",null,2)}}}else{if(e=="Class"){if(dojo.byId("classinfo-type-span-1")!=null){dojo.byId("classinfo-type-span-1").style.display=(g_funcArray[84]==0?"none":"")}if(dojo.byId("classinfo-type-span-2")!=null){dojo.byId("classinfo-type-span-2").style.display=(g_funcArray[85]==0?"none":"")}if(dojo.byId("classinfo-type-span-3")!=null){dojo.byId("classinfo-type-span-3").style.display=(g_funcArray[86]==0?"none":"")}if(dojo.byId("classinfo-type-span-4")!=null){dojo.byId("classinfo-type-span-4").style.display=(g_funcArray[88]==0?"none":"")}if(dojo.byId("classinfo-type-span-5")!=null){dojo.byId("classinfo-type-span-5").style.display=(g_funcArray[87]==0?"none":"")}}else{if(e=="QueryTabTab"){var j="";if(g_funcArray[90]==1){j+="b"}if(g_funcArray[91]==1){j+="c"}if(g_funcArray[92]==1){j+="m"}if(g_funcArray[93]==1){j+="r"}if(g_funcArray[94]==1){j+="u"}if(g_funcArray[95]==1){j+="p"}if(g_funcArray[96]==1){j+="f"}if(g_funcArray[97]==1){j+="k"}if(g_funcArray[98]==1){j+="x"}if(g_funcArray[99]==1){j+="1"}if(g_funcArray[100]==1){j+="2"}if(g_funcArray[102]==1){j+="3"}if(g_funcArray[103]==1){j+="4"}if(g_funcArray[101]==1){j+="a"}return j}else{if(e=="ShowPatent"){if(g_funcArray[105]==0){dojo.byId("showpatent-uspto-img").style.display="none"}if(g_funcArray[106]==0){dojo.byId("showpatent-printout-img").style.display="none"}if(g_funcArray[107]==0){dojo.byId("showpatent-showclaims-img").style.display="none"}if(g_funcArray[108]==0){dojo.byId("showpatent-dopdf-img").style.display="none"}if(g_funcArray[109]==0){dojo.byId("showpatent-expandallcomment-img").style.display="none"}if(g_funcArray[110]==0){dojo.byId("showpatent-addtoproject-img").style.display="none"}if(g_funcArray[120]==0){var b=dijit.byId("contextmenu");var a=dijit.byId("wrsmenuitem");if(a!=null){b.removeChild(a)}}if(g_funcArray[121]==0){var b=dijit.byId("contextmenu");var c=dijit.byId("addcommentmenuitem");if(c!=null){b.removeChild(c)}}if(g_funcArray[122]==0){var b=dijit.byId("contextmenu");var d=dijit.byId("addnotemenuitem");if(d!=null){b.removeChild(d)}}if(g_funcArray[123]==0){var b=dijit.byId("contextmenu");var k=dijit.byId("ptmenuitem");if(k!=null){b.removeChild(k)}}}else{if(e=="ProjectGet"){if(dojo.byId("projectupdate-newproject-color")!=null){dojo.byId("projectupdate-newproject-color").style.display=(g_funcArray[83]==0?"none":"inline")}}}}}}}}}}}function prepareLogin(b,e){var a=document.body.clientHeight;var f=document.body.clientWidth;var d=620;var c=390;if(LoginForm_Load==false){dload("login-form-div","login.htm");LoginForm_Load=true}if(a<c){c=a;dojo.byId("login-form-div").style.overflowY="scroll";dojo.byId("login-form-div").style.height=c+"px"}else{dojo.byId("login-form-div").style.overflowY="hidden";dojo.byId("login-form-div").style.height=c+"px"}if(f<d){d=f;dojo.byId("login-form-div").style.overflowX="scroll";dojo.byId("login-form-div").style.width=d+"px"}else{dojo.byId("login-form-div").style.overflowX="hidden";dojo.byId("login-form-div").style.width=d+"px"}var h=(f-d)/2;var g=(a-c)/2;if(h<0){h=0}if(g<0){g=0}dojo.byId("login-form-div").style.left=h+"px";dojo.byId("login-form-div").style.top=g+"px";dojo.byId("login-form-div-table1").style.display="";dojo.byId("login-form-div-table2").style.display="none";dojo.byId("shadowDiv").style.display="";dojo.byId("login-form-div").style.display="";dojo.byId("login-form-div").style.visibility="visible";dojo.byId("shadowDiv").style.visibility="visible";funcBeforeLogin=b;varsBeforeLoginArray=e}function getUserLoginState2(a,b){var f=false;var e=dojo.byId("login-form-div");if(e==null){a(b);return}e.style.display="none";var g=dojo.byId("login-result-div");g.style.display="";var c=c_sUserGet+"&it=1&random="+Math.random();var d={url:c,handleAs:"json",sync:true,load:function(j,i){if(j.Error!=null){var h="";if(basic_search!=null){h=getDatabaseSpan()}g.innerHTML=h+g_loginSpan;setPageInitState(false);alert(j.Error);prepareLogin(a,b)}else{if(j.User!=null){e.style.display="none";g.style.display="";var h="";if(basic_search!=null){h=getDatabaseSpan()}g.innerHTML=h+'<b><span class="querylist-a" onmouseout="onQueryTableMouseOut(this, &#39;a&#39;);" onmouseover="onQueryTableMouseOver(this, &#39;a&#39;);" onclick="prepareUpdateUserInfo()">'+j.User.Name+'</span></b>&nbsp;<span class="header-menu-mouseover" onclick="doLogOff();">'+c_sSignOff+"</span>&nbsp;"+g_versionSpan;f=a(b)}else{if(j.PD==1){e.style.display="none";g.style.display="";var h="";if(basic_search!=null){h=getDatabaseSpan()}f=a(b)}else{var h="";if(basic_search!=null){h=getDatabaseSpan()}g.innerHTML=h+g_loginSpan;if(!doLoginFormCookie()){prepareLogin(a,b)}}}}},error:function(j,i){var h="";if(basic_search!=null){h=getDatabaseSpan()}g.innerHTML=h+g_loginSpan;setPageInitState(false);alert(j.message);prepareLogin(a,callbackFuncsArray)}};dojo.xhrGet(d);return f}function pScrollIntoView(a,b){if(a!=null&&a.scrollTop!=null){a.scrollTop=b.offsetTop}}function escapeRegExp(a){return a.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1")}function HiddenQueryListIcon(b){var a;if(b.length==2||b.length==3){a=b[0]}else{a=b}if(dojo.byId("querylist-queryresultstat-div-"+a)!=null){dojo.byId("querylist-queryresultstat-div-"+a).style.display="none"}if(dojo.byId("queryrelated-cluster-div-"+a)!=null){dojo.byId("queryrelated-cluster-div-"+a).style.display="none"}if(dojo.byId("querylist-patentmap-div-"+a)!=null){dojo.byId("querylist-patentmap-div-"+a).style.display="none"}if(dojo.byId("queryrelated-cluster-div-"+a)!=null){dojo.byId("queryrelated-cluster-div-"+a).style.display="none"}if(a=="SEARCH-MASTER"){if(dojo.byId("querylist-queryresultchart-div-SEARCH-MASTER")!=null){dojo.byId("querylist-queryresultchart-div-SEARCH-MASTER").style.display="none"}if(dojo.byId("search-master-rotate-div")!=null){dojo.byId("search-master-rotate-div").style.display="none"}}}function belongToMxDataBase(a){if(a>=220000000&&a<=255000000){return true}return false}function imgCheckboxOver(a){if(a!=null){if(a.src.indexOf("img/cancel.gif")!=-1){return}else{a.src=c_sImgPath+"img/check-active.gif"}}}function imgCheckboxOut(a){if(a!=null){if(a.src.indexOf("img/cancel.gif")!=-1){return}else{a.src=c_sImgPath+"img/check.gif"}}}function checkCheckboxImg(a){if(a!=null){if(a.src.indexOf("img/check.gif")!=-1||a.src.indexOf("img/check-active.gif")!=-1){a.src=c_sImgPath+"img/cancel.gif"}else{a.src=c_sImgPath+"img/check.gif"}}}function MyScorllIntoView(a){a.scrollIntoView()}function getElementsByClassNameIE(e,d){if(e==null){return null}var g=[];var f=new RegExp("\\b"+d+"\\b");var c=e.getElementsByTagName("*");for(var b=0;b<c.length;b++){var a=c[b].className;if(f.test(a)){g.push(c[b])}}return g}function changeIdentifyCodePic(a){if(a!=null){a.src="";a.src="invokebinary.do?sf=IdentifyCodeGet&random="+Math.random()}}function onQueryTableMouseOver(d,b,a,c){if(b!="p"){d.style.textDecoration="underline"}}function prepareUpdateUserInfoCall(){if(SignupForm_Load==false){dload("signup-form-div","signup.htm");SignupForm_Load=true}prepareUpdateUserInfo()}function prepareSignupAccountCall(){if(SignupForm_Load==false){dload("signup-form-div","signup.htm");SignupForm_Load=true}prepareSignupAccount()}function resetPasswordCall(){if(ResetpwdForm_Load==false){dload("resetpwd-form-div","resetpwdApp.htm");ResetpwdForm_Load=true}resetPassword()}function ReSendActiveMailCall(){if(ResendemailForm_Load==false){dload("resendemail-form-div","resendemail.htm");ResendemailForm_Load=true}ReSendActiveMail()}function setPopupDivPositionCall(){if(Query_JS==false){return}setPopupDivPosition()}ApplicationState=function(a,c,b){this.dataform=new Object();this.dataform.ipi=a.ipi.value;this.dataform.sq=a.sq.value;this.dataform.sd=a.sd.value;this.dataform.idi=a.idi.value;this.dataform.iopt=a.iopt.value;this.dataform.sc=a.sc.value;this.dataform.sds=a.sds.value;this.dataform.sde=a.sde.value;this.dataform.ip=a.ip.value;this.dataform.sdf=a.sdf.value;this.dataform.sqf=a.sqf.value;this.datafulltext=c;this.datarelated=b};function onQueryTableMouseOut(d,b,a,c){if(b!="p"){d.style.textDecoration="none"}}function escaping(c){if(navigator.appName=="Netscape"){if(c==null){var a=document.getElementsByTagName("div");for(var b=0;b<a.length;b++){if(a[b].className=="ptable"){a[b].innerHTML=a[b].textContent}}}else{var a=c.getElementsByTagName("div");for(var b=0;b<a.length;b++){if(a[b].className=="ptable"){a[b].innerHTML=a[b].textContent}}var a=c.getElementsByTagName("ptable");for(var b=0;b<a.length;b++){a[b].innerHTML=a[b].textContent}}}}function getIframeObj(a){if(dojo.isIE){return document.frames[a]}else{return document.getElementById(a)}}function getIFrame(a){if(dojo.isIE){return document.frames[a].document}else{return document.getElementById(a).contentDocument}}function getIFrameDocument(c){if(dojo.isIE){var b="";if(document.frames[c]!=null){return document.frames[c].document}if(document.frames["iframe"+c]!=null){b="iframe"+c}else{if(document.frames["iframehead"+c]!=null){b="iframehead"+c}}if(b==""){return null}return document.frames[b].document}else{var d=null;var a;if(c.indexOf("iframehead")==-1){d=document.getElementById("iframe"+c);a="iframe"+c;if(d==null){d=document.getElementById("iframehead"+c)}}else{d=document.getElementById(c);a=c;if(d==null){d=document.getElementById("iframe"+c.replace("iframehead",""))}}var e=null;if(d!=null){if(d.contentDocument){e=d.contentDocument}else{e=d.document}}}return e}function setMxConcetpRadio(c){var b=dojo.byId("search-master-sd-CONCEPT");var a=dojo.byId("search-master-sd-BOOL");if(getDatabaseGroup(c)==3){if(b!=null&&b.checked){Mx_Radio=0}else{Mx_Radio=1}b.disabled=true;a.checked=true;Last_Mx=true}else{if(Last_Mx){Last_Mx=false;b.disabled=false;if(Mx_Radio==0&&b!=null){b.checked=true}else{a.checked=true}}else{if(b!=null){b.disabled=false}}}}function showHideParentSibling(c,a){if(c==null){return}var b=c;if(!isNullorEmpty(a)){while(b!=null&&b.tagName!=a){b=b.parentNode}}if(b==null){return}do{b=b.nextSibling}while(b!=null&&b.tagName!=a);if(b&&b.style){if(b.style.display==""){b.style.display="none"}else{b.style.display=""}}}function showHideParentSiblings(c,a){if(c==null){return}var b=c;if(!isNullorEmpty(a)){while(b!=null&&b.tagName!=a){b=b.parentNode}}if(b==null){return}do{b=b.nextSibling;if(b!=null&&b.tagName==a){if(b&&b.style){if(b.style.display==""){b.style.display="none"}else{b.style.display=""}}}}while(b!=null)}function CheckClientShowPatent(a){if(!isNullorEmpty(isShowPatent)&&isShowPatent&&isClient){if(isNullorEmpty(a)||isNullorEmpty(g_innerpn)){return true}if(a==g_innerpn){return true}}return false}function onmouseoverGif(a,b){a.src="img/"+b+"-active.gif"}function onmouseoutGif(a,b){a.src="img/"+b+".gif"};