﻿function ToggleCheckBoxListItem(item) {
    $(item).find("input[type=checkbox]").change(function() {
        var checked = $(this).attr("checked");
        if (checked == true) {
            $(this).parent().find(".checkboxListDesc").show();
        } else {
            $(this).parent().find(".checkboxListDesc").hide();
        }
    });
}

function UserTrackerPing(pingUrl) {
    $.ajax({ url: pingUrl, type: 'GET', cache: false, success: function(res) { } });
}

function SubmitCommandLinkForm(id) {
    $("form#" + id).submit();
}

function AutoFocus(selector) {
    $(document).ready(function() {
        $(selector).focus();
    });
}
