Alright, I'm trying to create an auto complete text box (VERY similar to gmail's function when typing in addresses).

I'm trying to figure out where to start and was wondering if anyone can give me some tips.

Note: I do not want a completed solution, I need to write my own solution. I am experienced in JavaScript, but I'm finding the task a little overwhelming right now (I've looked at some of the solutions on the Internet).

Please, any tips and stuff would be really helpful!