I've got this calendar application in asp. Everytime you click a new date the background color changes and when you submit the asp page takes out the checkboxes from the dates already selected.

the bottom of the page has 2 text boxes that have a specific background color (iterates through a series of 4) and when the checkbox for a date is selected I need the background color to change according to the color of the text boxes. (in javascript)

so how would I pull the background color from the text boxes in order to know what color to change the checkbox (<td>) back ground color?

did i make sense?