I am having trouble displaying a picture in a div tag in the body of my page. I think the problem lies in the fact that I need to use a variable to display the image and it is not carrying over for some reason.

The variables are all global and defined correctly in the functions. I hope this makes sense. If anyone can offer some advice, I will gladly try any thing. I can't even come up with any more search strings.

Here is the latest code I tried for inside the div tags...

<div id="jpgcontent">
<script language="Javascript">
document.write("<img name='jpg' src='jpg files/" + myList2[loopJPG] + "' width='811' height='607'>");