javascript timer page up and down won't go to bottom of page
<p>I have a timer script which scrolls up and down and repositions the page to the top every 10 seconds and back down every 5 seconds.  My problem is I can't get it to scroll all the way down.  </p>

<pre><code>&lt;script language="JavaScript" type="text/javascript"&gt;

// Configure refresh interval (in seconds)
var refreshinterval=300

// Shall the coundown be displayed inside your status bar? Say "yes" or "no" below:
var displaycountdown="yes"

var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0

function starttime() {
    starttime=new Date()
    starttime=starttime.getTime()
    countdown()
}

function countdown() {
    nowtime= new Date()
    nowtime=nowtime.getTime()
    secondssinceloaded=(nowtime-starttime)/1000
    reloadseconds=Math.round(refreshinterval-secondssinceloaded)
    if (refreshinterval&gt;=secondssinceloaded) {
        var timer=setTimeout("countdown()",1000)
        if (displaycountdown=="yes") {
            window.status="Page refreshing in "+reloadseconds+ " seconds"
        }
        if (timer % 5 == 0) { 
            window.scrollTo(0,1200);
        } 
        if (timer % 10 == 0) { 
            window.scrollTo(0,0);
        } 

    }
    else {
        clearTimeout(timer)
        window.location.reload(true)

    } 
}
window.onload=starttime
&lt;/script&gt;
</code></pre>

<p>How do i get it to scroll all the way down or page down?</p>

<p>thanks in advance</p>
