JavaScript - SetInterval doesn't function properly
<p>I got this piece of script (runned locally):</p>

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

last = 0;

function uploadnew(){

var randomnumber=Math.floor(Math.random()*6);
if(randomnumber != last){
    document.forms['f'+randomnumber].submit();
} else { uploadnew(); }

}

setInterval (uploadnew(), 1000*60*5);

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

<p>But it seems that setInterval is not working / send form function doesn't work...</p>

<p>Any help will be appreciated!</p>

<p>Thanks!</p>
