﻿var lastNode = null;
function MCC(poNode)
{
    var loParent = poNode.parentNode;
    if (lastNode)
    {
        lastNode.style.backgroundColor = '#772B1A';
        lastNode.style.color = '#FFFFFF';
        poNode.style.backgroundColor = '#772B1A';
        poNode.style.color = '#FFFFFF';
    }
    if (lastNode != loParent)
    {
        loParent.style.backgroundColor = '#FADE7A';
        loParent.style.color = '#000000';
        lastNode = loParent
        poNode.style.backgroundColor = '#FADE7A';
        poNode.style.color = '#000000';
    }
    else
    {
        lastNode = null;
    }
}

