Javascript replace help
<p>I'm trying to use javascript to change a few bits of text on a checkout page for a shopping cart that I'm stuck using.</p>

<p>I got the following that works for the few pieces that are labeled with IDs. The problem is that one of the pieces I want to change is a class, and I can't seem to get it to work. </p>

<p>Any help on getting the following to work for a class? Thanks</p>

<pre><code>window.onload = function() {
    var str = "Price per Unit";
    el = document.getElementById('pricePerUnit');
    el.innerHTML = str;
    var date = new Date();
    var hours = date.getHours();


    if (hours &gt;= 0 &amp;&amp; hours &lt; 24) {
        el.innerHTML = str.replace("Price per Unit", "Price");
    }
}
</code></pre>

<p>edit: here is the code that I'm trying to change, basically I want to change the $30 to say $30+$5/mo, there is only one element for that class</p>

<pre><code>&lt;td valign="top" align="center" class="unitprice"&gt;
&lt;font size="2" face="Arial, Helvetica, sans-serif" color=""&gt;$30.00&lt;/font&gt;&lt;/td&gt;
</code></pre>
