Custom JavaScript in Microsoft Dynamics CRM 4.0

We do a lot of customizations on our Microsoft Dynamics CRM 4.0 deployment, specifically, adding buttons that run custom reports based on data provided in the...