function createComboBox(tagId, store,selectHandler){
		return new Ext.form.ComboBox({
				store: store,
				displayField:'label',
				typeAhead: true,
				mode: 'local',
				editable: false,
				forceSelection: true,
				triggerAction: 'all',
				emptyText: store.getAt(0).get("label"),
				selectOnFocus:true,
				applyTo: tagId,
				listeners: {
					'select' : selectHandler?selectHandler:function(combobox, record, index){}
							}
			});
	}
	
	
	
	
function convertComboValueToLabel(value,store){
	var retVal = value;
	if(store!=null){
		if(store.getCount() > 0){
			var currentRecord;
			if(store.getCount() == 1){
				currentRecord = store.getAt(0);
				retVal = currentRecord.get('label');
				
			}else{
				var found = false;
				for(var i=0; i<store.getCount(); i++){
					currentRecord = store.getAt(i);
					if(currentRecord.get('value') == value){				
						retVal = currentRecord.get('label');
						found = true;
						break;
					}
				}
				if(!found){
					currentRecord = store.getAt(0);
					retVal = currentRecord.get('label');
				}
			}
		}
	}
	return retVal;
}
	
function convertComboLabelToValue(label,store){
		var retVal = label;
		if(store!=null){
			if(store.getCount() > 0){
				for(var i=0; i<store.getCount(); i++){
					var currentRecord = store.getAt(i);
					if(currentRecord.get('label') == label){
						
						retVal = currentRecord.get('value');
						break;
					}
				}
			}
		}
		return retVal;
	}