
// simple array store
function convertCombox(el,nWidth)
{
//    var store = new Ext.data.SimpleStore({
//        fields: ['name', 'value'],
//        data : Ext.exampledata.states // from states.js
//        data : myData
//    });
//     combo = new Ext.form.ComboBox({
//        store: store,
//        hiddenName:'name',
//        displayField:'name',
//		  valueField:"value",
//        typeAhead: true,
//        mode: 'local',
//        triggerAction: 'all',
//        selectOnFocus:true,
//		  editable:true,
//		  forceSelection:true,
//        resizable:true
//        emptyText:'Select a state...',
//    });
//    combo.applyTo(el);
//    combo.selectByValue(1,true);
    if (nWidth == undefined || nWidth == null)
    {
        cnWidth = 150;
    }
     var convertedCmb = new Ext.form.ComboBox({
		    typeAhead: true,
		    triggerAction: 'all',
		    transform:el,
		    width:nWidth,
		    //disabled:false,
		    //editable:false,
		    //readOnly:true,
		    forceSelection:true
	    });
	return convertedCmb;
}

