Dhtml conditional scripting in xpages

Hi,

I was looking at the oneUI v2 code in the IBM doc on http://www-12.lotus.com/ldd/doc/oneuidoc/docpublic/index.htm and wondered how to implement this (suggested) DHTML conditional script below in a xpage.

Actually, there seems to be no place in a xpage conception to insert such a code into the Header, between the tags of the HTML Page

Any idea ?

Thanks