hide suggest box on blur event

hide suggest box on blur event

Hi,

I have to do a suggest box reading results from mysql through AJAX. It works fine, but i have a doubt:

When I write the keywords in the input box, then I show a DIV containing the query results, and when the input box loses the focus, the DIV hides itself after a setTimeout of 500 msec. The problem comes when the results overflow the containing DIV, and it show a vertical scrollbar. When the user clicks the scrollbar, IE8 detects that the inputbox lost the focus and hide the DIV. The user has to be able to scroll the DIV without hiding it, but the DIV must hide when the user clicks out of the zone.

In Firefox works well. IE8 makes me angry...

I hope you can understand me, sorry for my bad english, I'm from Spain.

Thanks in advance.