fixed re-entry of search criteria and added some util functions. moved soapcall out of index.html