\/a>';htmlGrid+="<\/div>";htmlGrid+='
';htmlGrid+='
';htmlGrid+='
';htmlGrid+='
';htmlGrid+='
Application #<\/div>';htmlGrid+='
'+l+"<\/div>";htmlGrid+=" <\/div>";htmlGrid+='
';htmlGrid+='
Categories<\/div>';htmlGrid+='
'+p+"<\/div>";htmlGrid+=" <\/div>";htmlGrid+=o;htmlGrid+='
';htmlGrid+='
Compounds<\/div>';htmlGrid+='
'+u+"<\/div>";htmlGrid+=" <\/div>";htmlGrid+=" <\/div>";htmlGrid+=" <\/div>";htmlGrid+='
View Application<\/a>';htmlGrid+=" <\/div>";htmlGrid+="<\/div>"}t=="show-all"?$("#divResultsGrid").append(htmlGrid):$("#divResultsGrid").html(htmlGrid);t=="show-all"?displayAjaxLoading(!1):hideWaiting();$("img").loadScroll(500)}});$("#docSugestBox").hide()}function highlightWords(n,t){var i,f,r,u,e;for(t=$.trim(t),i=t.split(" "),f=i.map(n=>typeof n=="string"?n.toLowerCase():n),i=Array.from(new Set(f)),r=0;r2&&(e=new RegExp("("+u+")","gi"),n=n.replace(e,'$1<\/span>'));return n}function getDocSuggestions(n){var t=od_doc_publickey,i=od_doc_engine,r=n,u={public_key:t,engine:i,suggest_query:r,limit:5};$.ajax({url:"https://api.searchnode.net/v1/public/suggestions/search",type:"post",contentType:"application/json",data:JSON.stringify(u),dataType:"JSON",success:function(t){for(var r,u="",i=0;i'+highlightWords(r,n)+"<\/div>";$("#docSugestBox #divSuggestions").html(u);t.suggestions.length>0?($("#docSugestBox #divSSSuggestions").show(),$("#docSugestBox").show()):$("#docSugestBox #divSSSuggestions").hide()}})}function docSetKeyword(n){$("#txtKeyword").val(n.getAttribute("data-suggest"));$("#docSugestBox").hide();$("#docSearchBtn").click()}function waiting(){$("#od-document-application #od-div-loading").show();$(".keywordName").html($("#txtKeyword").val());$("#txtKeyword").val().length>0&&$("#od-document-application .includeKeyword").show()}function hideWaiting(){$("#od-document-application #od-div-loading").hide()}var od_doc_publickey="S6zI8eGUJmaM6DwrlQ1LZQxdn04KoqVA",od_doc_engine="353278_1_1",od_doc_pagezise=10;$(function(){var n=gup("d"),t=gup("c"),i;(t!=null&&(i=t.split("|"),$.each(i,function(n,t){$('input[value="'+t.toUpperCase()+'"]').prop("checked",!0)})),n!="start")&&(n!=null?($("#txtKeyword").val(decodeURI(n)),getDocumentList(od_doc_pagezise)):getDocumentList(od_doc_pagezise,"first-load"))});$("#txtKeyword").keyup(function(n){n.keyCode===13&&getSuggestedDocuments()});$(function(){});$("#txtKeyword").focus(function(){$(".clearSearch").css("display","inline-block")});$(".clearSearch").click(function(){$(this).css("display","none");$("#txtKeyword").val("");getSuggestedDocuments();$("#od-document-application .includeKeyword").hide()});;