id = setInterval (interval, 1000);

oppure

id = setInterval (function() { interval(); }, 1000);