check box to activate/deactivate
<p>I have the following code. I want to make a check box that will activate this code when checked and deactivates the code when unchecked. can someone show me how?</p>

<pre><code>&lt;script type="text/javascript"&gt;
var auto_refresh = setInterval(
function ()
{
$('#load_tweets').load('record_count.php').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds

&lt;body&gt;
&lt;div id="load_tweets"&gt; &lt;/div&gt;
&lt;/body&gt;

&lt;/script&gt;
</code></pre>
