Do something every 5 seconds and the code to stop it. (JQuery)
<p>How can I repeat a function doSomething() every 5 seconds.</p>

<p>I also need code that will make it stop doing it.</p>

<p>And code to on-the-fly adjust the frequency.</p>
