﻿var checked = false
var unchecked = false
function InitInsufficientInfoProductions()
{
    $(".CheckNormal > input").click( function () {ToggleCheckAll();} );
    $(".CheckAll > input").click( function () {ToggleCheck();} );
}


function ToggleCheckAll()
{
    $(".CheckAll > input").removeAttr("checked");
}


function ToggleCheck()
{
    var checked = $(".CheckAll > input[@type='checkbox']").attr("checked");
    
    if (checked)
    {
        $(".CheckNormal > input[@type='checkbox']").attr("checked", "checked");
    }
    else
    {
        $(".CheckNormal > input[@type='checkbox']").removeAttr("checked");
        
    }
    
}
