function selectAll(id)
{
    $("#module_" + id + " input[type=checkbox]").attr("checked", "checked");
}
function deselectAll(id)
{
    $("#module_" + id + " input[type=checkbox]").removeAttr("checked");
}