Info for future: there are nice jQuery ways to do these things too.