You should be able to change this line:

Code

day = get_object("day" + today);


to this:

Code

day = document.getElementById("day" + today);