function Zmb_LiveSearch_Init(input_url,session_id_get)
{	
	var ds = new Ext.data.Store(
	{
        proxy: new Ext.data.ScriptTagProxy({
            url: input_url+'Zmb_LiveSearch.php'
        }),
        reader: new Ext.data.JsonReader(
        {
            root: 'products_rows',
            totalProperty: 'products_count',
            id: 0
        }, 
        [
            {name: 'products_link_id', mapping: 'products_id'},
            {name: 'products_image', mapping: 'products_image'},
            {name: 'products_name', mapping: 'products_name'},
            {name: 'price',mapping: 'products_price'},
            {name: 'price_new', mapping: 'products_price_new'}
        ])
    });

    // Custom rendering Template
    var resultTpl = new Ext.XTemplate(
								        '<tpl for="."><div class="search-item" style="font-size:12px">',
								        	'<table><tr><td>',
								            '<img src="{products_image}">&nbsp;',
								            '</td><td>',
								            '<b>{products_name}</b>',
								            '<br>UVP:&nbsp;{price_new}<br>Unser Preis:&nbsp;{price}',
								            '</td></tr></table>',
								        '</div></tpl>'
								    );
    
    var search = new Ext.form.ComboBox(
    {
        store: ds,
        displayField:'name',
        typeAhead: false,
        loadingText: 'Searching...',
        width: 570,
        pageSize:10,
        hideTrigger:true,
        tpl: resultTpl,
        applyTo: 'zmb_live_search',
        itemSelector: 'div.search-item',
        onSelect: function(record){ 
            window.location = String.format('{0}product_info.php?{1}&{2}',input_url,record.data.products_link_id,session_id_get);
        }
    });
}