It looks like you may be using SPAutocomplete on a borwser-based Infopath form. While I've written on my blog about doing that, it's a bit clunky. I think you're simply going to have to debug further.
BTW, I don't see any autocomplete logic above, and there's also no reference to jQuery or SPServices. I assume those references are elsewhere.
M.