This is something you can start from:
// Define Regular Expression for search
var rgExp = new RegExp(event.value);
// Matches Soc. Sec. Num.
// Loop over document pages
var foundAtPag = [];
for(var pg=0; pg<this.numPages; pg++) {
var len = getPageNumWords(pg);
// Loop over words on page
for(var i=0; i<len; i++) {
var wd = this.getPageNthWord(pg, i, false);
if(rgExp.test(wd)) {
foundAtPag.push(pg);
this.addAnnot({
page: pg,
strokeColor: color.yellow,
type: "Highlight",
quads: this.getPageNthWordQuads(pg, i),
});
}
}
}
var gotoPag = foundAtPag[0];
this.pageNum = gotoPag;
credits: http://acrobatusers.com/tutorials/auto_redaction_with_javascript
I put the code into the Combobox | Validation custom script. First set Combobox Options property "Immediately set value".
It searches for words listed in the Combobox, highlights all of them and moves the document view to the first one.
Then, you can manually remove annotation marks from the Comments pane of the tool bar. Otherwise, you should script a button to have it done at mouse-click.
Hope it helps.