As2 Problem resetting timer interval

I have a timer that i made using object oriented coding. the timer works perfectly the first time when the game starts, but every time you win or lose and press space to restart at the first frame the timer interval doubles.

this is my timer code:

var cur_timer = 0;
function timer()
{

if (_root.timeron)
{
    cur_timer += 1;
}
timer = cur_timer;

}

time_interval = setInterval(timer, 1000);