If LCase(session("operatorv")) = "and" Then
strOperator="AND"
Else
strOperator="OR"
End If
For I=LBound(arrTerms) to UBound(arrTerms)
strSQL=strSQL&"(namel LIKE '%"&arrTerms(I)&"%'"
strSQL=strSQL&"OR school LIKE '%" &arrTerms(I)&"%')"
If I < UBound(arrTerms) Then
strSQL=strSQL&" "&strOperator&" "
End If
Next