CR, [something like] this should work:
in your.tcl:
set js {
...put your javascript code here...
}
in your.adp:
<master>
<property name="header_stuff">
<if @header_stuff@ defined>
@header_stuff;noquote@
</if>
@js;noquote@
</property>
Or, you could put your javascript directly in your.adp where @js@ appears. BTW, this is how you would add css <link...> references also.
Randy