 function (s) {
            if (s) {
                $('#aa').accordion('select', s);
            }
        });
    }
    var idx = 1;
    function addPanel() {
        $('#aa').accordion('add', {
            title: 'Title' + idx,
            content: '<div style="padding:10px">Content' + idx + '</div>'
        });
        idx++;
    }
    function removePanel() {
        var pp = $('#aa').accordion('getSelected');
        if (pp) {
            var index = $('#aa').accordion('getPanelIndex'