var ie4 = false;
if(document.all) {
        ie4 = true; 
}       

function animate(name, col1, col2) 
{   
    command = 'animateloop(' + '"' + name + '"' + ',' + '"' + col1 + '"' + ',' + '"' + col2 + '"' + ', true)';
    
    setTimeout(command , 500);
}

function animateloop(name, col1, col2, period) {
    var d;
    if (ie4) {
            d = document.all[name];
    } else {
            d = document.getElementById(name);
    }
    
    d.style.color = period ? col2 : col1; 

    command = 'animateloop(' + '"' + name + '"' + ',' + '"' + col1 + '"' + ',' + '"' + col2 + '"' + ',' + !period +  ')';
    setTimeout(command , 500);
}
