well i have a function like this - (external js file)

Code:
function funClock() {
// code goes here ... then, 
if (document.layers) {
document.layers.clock.document.write(todaysdate+" » "+currenttime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = todaysdate+" » "+movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;
then, I am calling the same as -
Code:
<span id="clock"></span>
Problem, works fine in IE, 7 as well as 6 and below, but not in FF. Nothing appears there in firefox.

Any guess?