
    function ValidateBundleGroup(clientId)
    {
        var doReturn = true;
        
        // check group 1
        if (!ValidateBundleGroupSelections(clientId + 'Group1')) 
        {
            //alert('You must select a product from group 1!');
            $('#groupDiv' + clientId + 'Group1').effect("highlight", {color: '#FF0000'}, 1000);
            doReturn = false;
        }
        
        // check group 2
        if (!ValidateBundleGroupSelections(clientId + 'Group2')) 
        {
            //alert('You must select a product from group 2!');
            $('#groupDiv' + clientId + 'Group2').effect("highlight", { color: '#FF0000' }, 1000);
            doReturn = false;
        }
        
        // check group 3
        if (!ValidateBundleGroupSelections(clientId + 'Group3')) 
        {
            //alert('You must select a product from group 3!');
            $('#groupDiv' + clientId + 'Group3').effect("highlight", { color: '#FF0000' }, 1000);
            doReturn = false;
        }

        return doReturn;
    }
    
    function ValidateBundleGroupSelections(groupName)
    {
        var gl = $('input[groupname=' + groupName + ']').length;
        var sl = $('input[groupname=' + groupName + ']:checked').length;
        
        return !(gl > 0 && sl <= 0);
    }
