');
doc.write('<','/TD><','/TR>');
doc.write('<','/TABLE><','/FORM>');
doc.write('<','/body><','/html> ');
doc.close();
}
//Called to set or clear all the categories
function setAllCat(val) {
for (i=0; i= 0 ) {
//ok... we matched the category. Which one? i2 is start of the category; i2-1 is a comma
i3 = catcrit.substring(0,i2-1).lastIndexOf(",");
i4 = parseInt(catcrit.substring(i3+1, i2-1));
if (isNaN(i4))
flag=false;
else {
//if (typeof subcatcrit[i4] == "undefined" ) {
// alert(i4 +","+(typeof i4)+","+ Cs[i].clinhist);
// }
if (subcatcrit[i4]=="") //if we accept all subcategories, we are done
flag=true;
else //otherwise we have to check
flag= (subcatcrit[i4].indexOf(Cs[i].subcategory[i1]) >= 0);
}
}
i1 += 1;
}
if (flag) Dsp[x++] = i;
}
dispDescription = "Case Retrieval by Category";
// alert(Dsp);
//Randomize matches if being displayed as unknowns
if (unknown)
sortMatches('random');
else
dispMatches();
}
// =================================== CASE SEARCHING =================================
//This fills the filter area with code to allow image searching
function SearchFilter() {
var doc = display.document;
var codeloc = "top";
// Now, prepare the document
doc.open();
doc.write(docHeader, "<","/head>");
//to allow selection, this needs to be a form
var submitaction = codeloc + ".newSearchFilter()";
doc.write('\n