The best way to change the innerHTML of a certain type of Elements
<p>I've a HTML page with several Div's that will show the time difference between now and each given date.</p>

<pre><code>&lt;div class="dated" onEvent="calculateHTML(this, 'Sat Jun 09 2007 17:46:21')"&gt;
30 Minutes Ago&lt;/div&gt;
</code></pre>

<p>I want that time difference to be dynamic (calculated to all elements when the page loads and also within a time interval)</p>

<p>So, my idea was to go to all div's of class "dated", calculate the time diference for each one and replace the correspondent innerHTML.</p>

<p>Is this the best aproach or should I try a different one?</p>

<p>Edit: 
<br>One of the problems I've encountered was, where do I keep within the div, the date that will be used to generate the text?</p>
