Is it possible to observe a boolean variable in javascript?

like Event.observer(element,"change",function(){..})

in DOM2 there are only eventnames for form elements "change" or mouseevents.

thanks
manni