Consolidate search function
Consolidate search function

combine searchObjects250 and searchobjects into one function and add logic to use doselect or doquery based on requested rowcount

added spacing for code cleaniness/consistency,
jsarver/catools