

function initSelect( aselname, ainitvalue ) { 
  sel = document.getElementById( aselname );
  for ( i=0; i<sel.options.length; i++ ) {
    opt = sel.options[i];
    if ( opt.value == ainitvalue ) {
      sel.selectedIndex = opt.index;
    }
  }
}
