One feature I like about GMAIL, is the way it pops up a box as you type an email address during composition. The box displays both NAME and EMAIL ADDRESS matches to what you have typed so far, with the found text bolded. See this pic for an example:

If you look at the page source in GMAIL, you'll see a bunch of scripting language that I'm not familiar with. Is this some kind of custom scripting language?
How could you recreate this effect in PHP or some other method? That is, how could you pop up a box that showed matches for what a user had typed into a field. This thing works in real time, so, as you type, the box repopulates. This would be very helpful in forms where repetive information is entered, but a drop down box isn't really practicle.
Any ideas?