Hi Leon,
May I suggest that you work with classes instead of styles? It's way easier to identify the elements after.
So I would create on the theme, a class selected-cell with background-color: LightBlue;

And then the Javascript would be:
function Highlight(CellId) {
var selectedCell = document.getElementsByClassName("selected-cell")[0];
if(selectedCell !== undefined)
selectedCell.classList.remove("selected-cell");
document.getElementById(CellId).classList.add("selected-cell");
}
It simply identifies the element with selected-cell class and if it finds one, it will remove the class and after adds the selected-cell class to the new cell you want to highlight.
Hope it helps.
Cheers,
João