Thanks for the reply,
Function setKpis is called when the page is loaded and filles the aKpi array. Function getKpis is called from a select (options drop-down list) to populate a second select (options drop-down list).
The Body Tag:
<body ... onload="setKpis()">
The Select Tag:
<select ... onchange="getKpis(this.form)">
The Script Tags:
<script> aKpi declaration and embedded functions </script>
<noscript>Your browser does not support script</noscript>
This works fine if i remove the <script src...> tags, but the minute i put them in the array seems to lose its contents (well, the second select list comes out blank when i select from the first). Maybe i'm doing something wrong? i've also tried to declare the array in the header tag.