I think the smarty "escape" modifier has an option so that it can be used within javascript escaping?!
Else you can use the 'replace' modifier.
(see smarty.php.net)
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/