Erm im not 100% sure but if you just stick it in a external .js page and doe the normal Script inclusion wouldnt that get around the nasty JavaScript and let it validate?
***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************