javascript using global variables
<p>can't seem to get this to work.</p>

<pre><code> var current_times = new Date();
 var future_times = new Date();

 function time(){
 current_times = current_times.setMinutes(current_times.getMinutes());
 future_times = future_times.setMinutes(future_times.getMinutes() + 1);     
 }
</code></pre>

<p>error im getting is: current_times.getMinutes is not a function</p>

<p>note sure this helps, but the time function is called from a function which is initiated on body load. </p>
