I've was playing around with a few things last night, and I just saw your example this morning.
Your example seems like it will do a lot of work after the insert is done, and one of the things that I want to do is display the price of the item selected in the readonly input field before the user hits submit. ;)
So, I managed to inject the values that I need into your WAJA array that is created by your script, I am wondering how I call them into the readonly text field onChange.
<select name="select" id="select" onChange="document.form1.textfield.value = WAJA[currentPlaceInArray][currentPlaceInArray]">
Is that even possible?