little problem with form after reloading
can anyone take a look at this script?
http://www.pastie.org/843195 When I submit the form for the first time and the result is indeed not NaN, everything goes fine, but when there's an error, the form gets reloaded, and I submit a second time, the "addToList()" function (line 60) is not called, however the "unloadPopup()" function (line 61) IS called. I can't figure out what's going wrong here...