// Stopwatch helper functions
// Chris Underwood/2009
// http://stopwat.ch

var id = 0;

function storeTime(strTime)
{
    // Can only store 30 times
    if (id >= 30) return;
    
    // Find time list element
    var el = document.getElementById('t' + id);
    el.innerHTML = strTime;

    // Next element next time
    id++;
}

function clearTimes()
{
    for (var j=0; j < 30; j++)
    {
        var el = document.getElementById('t' + j);
        el.innerHTML = '-';
    }
    
    id = 0;
}
