Automatically populating list box items using Ajax

I wrote a JavaScript a few days ago which should work for this:

http://piano.altipla.no/pages/form_helper