/*
 * Ext JS Library 2.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function(){


 var convertedformat = new Ext.form.ComboBox({
        typeAhead: true,
        triggerAction: 'all',
        transform:'format',
        editable:false,
        width:195,
        mode: 'remote',
        style:"margin-left:0px;display:inline;font-weight:bold;",
        forceSelection:true
        //change:location.href='
    });
    
    //vyber kategorie
    convertedformat.on('select', 
    function()
    {
    form=document.getElementById('kats');
    form.action=id_adresa[this.value];
    form.submit();
    //document.location=this.value;
    }
    );

});
