tById('iformatrad').checked)
        {
            spansi[i].textContent = ' (radians)';
        }
        else
        {
            spansi[i].textContent = ' (degrees)';
        }
    }
     
    var spansres = document.getElementsByName('spanangleres');
    for (var i = 0; i < spansres.length; i++)
    {
        if (document.getElementById('resformatrad').checked)
        {
            spansres[i].textContent = ' (radians)';
        }
        else
        {
            spansres[i].textContent = ' (degree