I would like to know how to refresh an I-Frame every 310 seconds by picking a random site from a list to go to,

Here is the code so far...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<meta http-equiv="Refresh" content="310;" />
<title>I Frame testing</title>
<SCRIPT type="text/javascript">
     newurls=new Array()
     newurls[0]="1.htm"
     newurls[1]="2.htm"
     newurls[2]="3.htm"

 function picksite()
   {
     now=new Date()
     num=(now.getSeconds())%4
     top.location.href = newurls[num]
   }
 </script>
</head>
<body bgcolor="#ff0000" text="#00ffff"><CENTER>
This should load a link in the IFrame every 310 seconds...(5 mins 10secs)
<iframe name="001" noresize="" height="95%" width="95%" scrolling=yes>Load me...</iframe>
</body>
</HTML>
Well any ideas?

Basically the i Frame should pick from the list using th picksite() function but well it doesn't and i don't know why...

Any one ?

Oh yeah and if one link doesn't work i want a button that says 'Dead Link?' which then refreshes the entire page i think the code for this is...
Code:
<button Value="Refresh">Dead Link?</button>

Thanks in advance