why not just add the onclick attribute to the radio button?
<asp:RadioButton ID="CapitalImprovementsNO" runat="server" GroupName="CapitalImprovements" value="No" onclick="javascript:nocap();"/>
As far as I can tell the attribute isn't specifically an attribute of asp.net but it does end up an attribute of the generated HTML