how to adjust my javascript countdown to repeat over again after execution
<p>With the following code I want to count down and after the timer has reached 00:00 it will change window location. All is working up until that point. My question is how do I make this process repeat again after the window location has changed? I will be using this for a chrome extension to run in the background.</p>

<pre><code>var sec = 5; // set the seconds
var min = 10; // set the minutes

function countDown() {

    sec--;
    if (sec == -1) {
        sec = 59;
        min = min - 1;
    } else {
        min = min;
    }
    if (sec &lt;= 9) {
        sec = "0" + sec;
    }
    time = (min &lt;= 9 ? "0" + min : min) + " min and " + sec + " sec ";
    document.getElementById('theTime').innerHTML = time;
    SD = window.setTimeout("countDown();", 1000);
    if (min == '00' &amp;&amp; sec == '00') {
        sec = "00";
        window.clearTimeout(SD);
        window.location = 'http://mywebsite.com';
    }

}

window.addEventListener("load", countDown, false);
</code></pre>
