求。net 施用的前台javascript代码,实现全选功能的

求。net 使用的前台javascript代码,实现全选功能的
如题。想在前台加一个javascript实现复选框的单选全选和取消全选的功能。在网上搜索了很多,都只是全选和不全选的,要么就运行不起来。感觉很悲催。。。求一段全的代码:实现如下功能

1,点击标题栏上的那个复选框实现全选和全部选
2,当下面的单选按钮都点上则上面的全选checkbox也自动选上,反之,若有一个点击取消则上面的复选框按钮也不点上(注:不是所谓的反选)


求大神指点。要javascript 代码。不要后台的,后台每次都要刷新页面很烦。。。。越详细越好,O(∩_∩)O谢谢!
javascript  .net 全选 复选框

------解决方案--------------------
前台JS框架请使用EasyUI,网址: http://www.jeasyui.com/
------解决方案--------------------

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="viewTable">
        <tr class="trOperation">
            <th width="5%" style="height: 20px">
                <asp:CheckBox runat="server" ID="checkBoxAll" Title="全选" />
            </th>
            <th width="8%">
                <b>账户类型名称</b>
            </th>
            <th width="5%">
                <b>是否返点</b>
            </th>
            <th width="10%">
                <b>是否检查有效期</b>
            </th>
            <th width="8%">
                <b>是否可充值</b>
            </th>
            <th width="8%">
                <b>是否允许记名</b>
            </th>
            <th width="8%">
                <b>是否可补卡</b>
            </th>
            <th width="8%">
                <b>创建人员</b>
            </th>
            <th width="10%">
                <b>创建时间</b>
            </th>
            <th width="15%">