you should be able to insert javascript anywhere (within reason).. i have it in the footer.tpl sometimes..

might just be the syntax you are using..

would help to see what you are inserting to give more aid smile