Hi, I am not having success with this JavaScript to change pictures. I would appreciate any help if you happen to see the issue!

Thanks.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body Onload="pictures();">

<SCRIPT type="text/javascript">
var pictures= new Array(4);
pictureA[0]='star.gif';
pictureA[1]='star1.png';
pictureA[2]='star2.gif';
pictureA[3]='horn.png';
var secs
var timerID = null
var timerRunning = false
var delay = 1000
var j=0;
function pictures()
{
for (i=0;i<4;i++)
{
InitializeTimer();
}
}

function InitializeTimer()
{
// Set the length of the timer, in seconds
secs = 3
StopTheClock()
StartTheTimer()
}

function StopTheClock()
{
if(timerRunning)
clearTimeout(timerID)
timerRunning = false
}

function StartTheTimer()
{
if (secs==0)
{
StopTheClock()
\\ print the images here
document.write("<img src='"+ pictureA[0] +"'/>");


}
else
{
self.status = secs
secs = secs - 1
timerRunning = true
timerID = self.setTimeout("StartTheTimer()", delay)

}
}-->

</SCRIPT>



</body>
</html>