It's legacy code. it got to be replaced by unobstrusive javascript.