I'm still confused... If you want JavaScript help, this is the place. If you want Java help, then ask in the JSP forum (there is no such thing as "JAVA script"). If you want help with ASP.NET server controls, ask in the ASP.NET forum.
If you want a set of HTML CheckBoxes that are mutually exclusive (the user can click only one), then you create checkboxes with the same NAME. However, in that case, the convention is to use Radio Buttons. Users will expect to be able to click multiple checkboxes.
I suggest you clearly state the
1) DESIRED END RESULT: A set of checkboxes? Mutually-exclusive?
2) The language you want to use to achieve this result: ASP.NET? Java? JavaScript?