Listing B
<span id=spanSales></span>
<script language="JavaScript">
       setSpan('sales','initializeSales()');

       void function initializeSales() {
              for(var i=0;i < document.body.all.length;i++)
                     switch(document.body.all.item(i).name) {
                           case 'drpSales':
//                                document.body.all.item(i).onchange = new Function();

                                  break;
                           default:
                                  break;
                     }
       }
</script>