Functions and variable

I know this might seem like a stupid question
but how do i assign a var to a function

ID = evt.target.selectedItem.id;
level0.map_cont.mapContainer.map.map.markerContainer.marker[ID].mcContainer.ActivateChampDetails();

I know this is the wrong procedure.

thanks to any one who can bump this quick one.

cheers

brndn