The problem is in
art_id = request.vars['dt_1'].split('.')[-1]
For the first row it will be called dt_1 but for the second it will be dt_2 and
so on. Another possibility is that when you call the second. It mess up the JavaScript. Can you pastebin your whole code or attach your w2p app?

