var additionalInit=function(){

    var ds = new Ext.data.Store({
        proxy: new Ext.data.HttpProxy({
            url: '/livesearch.php?ct=story'
        }),
        reader: new Ext.data.XmlReader({
            totalRecords: 'results',
            record: 'row'
        }, [
            {name: 'sub'},
            {name: 'name'},
            {name: 'url'},
            {name: 'zusatz'}
        ])
    });

     // Custom rendering Template
    var resultTpl = new Ext.Template(
        '<div class="livesearch-item">',
            '<p>{sub} - <b>{name}</b>',
            ' {zusatz}',
        '</div>'
    );

    var search = new Ext.form.ComboBox({
        store: ds,
        displayField:'name',
        typeAhead: false,
        minChars:3,
        loadingText: 'Suche...',
        width: 250,
        pageSize:0,
        grow:true,
        hideTrigger:true,
        tpl: resultTpl,
        onSelect: function(record){ // override default onSelect to do redirect
            window.location =
                String.format('{0}', record.data.url);
        }
    });
    // apply it to the exsting input element
    search.applyTo('lsearch');

};

