Testing the three possible solutions, I will have to remove 3. It becomes very messy when there are multiple sources. The javascript that displays the hidden fields doesn’t know which set of QUAY / DATE / OBJE tags it is referring to on the page.
So I propose option 2.
Please test that, from the attached revised file.