Also, + not & to stick strings together in JS. Adrian
-----Original Message----- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: 14 July 2007 18:57 To: CF-Talk Subject: Re: JS/CF question I got it figured out! <script type="text/javascript"> function switchImage(theimage) { document.getElementById(theimage).src='../images/commentred.png'; } </script> That works. Thanks. Will ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283712 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

