<script>
function Quan()
{
$("input[type='checkbox']").each(function () { this.checked = true;})
}
function Fan() {
$("input[type='checkbox']").each(function ()
{
if (this.checked == true) {
this.checked = false;
}
else {
this.checked = true;
}
})
}
</script>