/** 검색 실행. */ function doSearch() { var form = document.searchForm; if ( form.txtQuery.value.replace(/( )+/gi, "") == "" ) { form.txtQuery.value = ""; form.txtQuery.focus(); return false; } /* query 의 값이 없다면 사용자가 직접 입력한 값으로 검색하는 것으로 판단한다. */ if ( form.query.value == "" ) { form.query.value = form.txtQuery.value; } return true; } /** 의미기반검색의 Cache를 클리어한다. */ function clearCache(cacheId) { dojo.xhrGet({ url: "ontology/clearCache.htm?cacheId=semantic", handleAs: "text", load: displayResultForClearingCache }); } /** Cache 내용 삭제 결과를 표시한다. */ function displayResultForClearingCache(resObj, ioArgs) { alert(resObj); }