function checkAll() { $(":checkbox").each(function () { $(this).attr('checked', true); }); }
function unCheckAll() { $(":checkbox").each(function () { $(this).attr('checked', false); }); }