Have you thought about doing this with a switch..case structure? It would be more robust to changing UAVO structure than by hardwiring the UAVO enum order to the html names.