JavaScript - Checkbox like radiobutton functionality
<p>How i can code the functionality of checkbox like radiobutton,below is mine quick code but it's seems not so perfect.</p>

<pre><code>&lt;asp:checkbox id="chkA" runat="server" onClick="SetCheck(this)"/&gt;
&lt;asp:checkbox id="chkB" runat="server" onClick="SetCheck(this)"/&gt;

&lt;Javascript&gt;
function SetCheck(chk)
{
Switch(chk.id)
{
case "chkA" :
chkB.checked=false;
break;
Case "chkB" :
chkA.checked=false;
break;
}
}
&lt;/Javascript&gt;
</code></pre>
