Hello,
I am working on the same and stuck with the exactly same problem with document.write. Can you please help me with the same?
(I also have same HTML code you have posted here)
Thanks a lot...