alright, here's how i solved it: note that these are test pages, so you will have to modify them slightly to your needs.
mainpage: this file contains a new version of submitparams(), a new version of compare(), a new function continueSearch() and a changed form "onsubmit". you will need to fill in your functions turnallboxoff() and checkall(). you will also need to complete the table of checkboxes and update the form onsubmit accordingly. the order in onsubmit is irrelevant; just make sure that the checkbox name matches the filename to search (e.g. CSSC - cssc.htm)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test</title>
<script type="text/javascript">
function submitparams(input, arParams) {
if (!arParams || !arParams.length || arParams.length == 0) {
if (!self.arMatches) {
alert(self.input + " not found."

;
}
else alert(arMatches.join("\n"

);
self.arMatches = null;
return true;
}
else {
if (!arParams[0].checked) {
arParams.shift();
submitparams(input, arParams);
}
else {
search(arParams[0].name + ".htm", input);
}
}
self.input = input;
self.arParams = arParams;
}
function continueSearch() {
self.arParams.shift();
submitparams(self.input, self.arParams);
}
function search(file, query) {
var iframe = document.getElementById("iframe"

;
iframe.src = file;
}
function compare(oLink, sInput, sFile) {
var re = new RegExp(sInput, "gi"

;
if (re.test(oLink.innerHTML)) {
self.arMatches = self.arMatches ? self.arMatches : [];
arMatches.push("\"" + sInput + "\" found in \"" +
oLink.innerHTML + "\" in " + sFile);
}
return true;
}
function turnallboxoff() {
}
function checkall() {
}
</script>
</head>
<body>
<FORM name = "drawing_finder"
onSubmit="submitparams(this.subject.value,
[this.ESO,
this.CS2,
this.CSSC,
this.GWC,
this.HF,
this.MICC,
this.ALL]);return false;">
<B>SUBJECT: </B> <INPUT TYPE = "text" NAME = "subject" SIZE = "40"> <INPUT TYPE = "submit" value = "Search">
<BR><BR>
<TABLE>
<TR>
<TD>
<B>SEARCH ONLY:</B>
</TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "CS2" onClick="turnallboxoff();"> CS2
</TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "CSSC" onClick="turnallboxoff();"> CSSC
</TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "ESO" onClick="turnallboxoff();"> ESO
</TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "GWC" onClick="turnallboxoff();"> GWC
</TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "HF" onClick="turnallboxoff();"> HF
</TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "MICC" onClick="turnallboxoff();"> MICC
</TD>
</TR>
<TR>
<TD></TD>
<TD>
<INPUT TYPE = "checkbox" NAME = "ALL" onClick="checkall();"> ALL
</TD>
</TR>
</TABLE>
</FORM>
<p/>
<iframe id="iframe" style="display:none;"></iframe>
</body>
</html>
search pages: onload, your search pages will need to call parent.compare() on all of the links, then parent.continueSearch().
<html>
<head>
<title></title>
<script type="text/javascript">
window.onload = function() {
for (var x = 0; x < document.links.length; x++) {
parent.compare(document.links[x], parent.input, document.location);
}
parent.continueSearch();
}
</script>
</head>
<body>
<form>
cssc.htm
<br/>
<a href="dogs.html">dogs</a>
<br/>
<a href="cats.html">cats</a>
</form>
</body>
</html>
also note that this method uses a hidden iframe to load the document, which then calls the parent's functions to do the work.
type in "dog", check "cssc" and click Search
i hope this gives you some ideas...
=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff