How to call a javascript function through the radio button click. with parameter passing

Java script
----------------------------------------------------------------------------------------------------------

 function SelfRegd(state)
      {
      if(state =="Yes")
      document.getElementById('<%=pnlSelfRegd.ClientID%>').style.display='inline';
      else if(state=="No")
      document.getElementById('<%=pnlSelfRegd.ClientID%>').style.display='none';
      }

Aspx
------------------------------------------------------------------------------------------------------------

<asp:RadioButton ID="rbtSelfRegtYes" onclick="return  SelfRegd('Yes');" runat="server" Text="Yes" GroupName="SelfRegt" />
                                    <asp:RadioButton ID="rbtSelfRegtNo" onclick="return  SelfRegd('No');" runat="server" Text="No" GroupName="SelfRegt" />


--------------------------------------------------------------------------------------------------------
OR
from code behind

pageload
---------------------------------------------------------------------------------------------------------

rbtSelfRegtYes.Attribute.Add("onclick","return SelfRegd('Yes')");