Dovrei inserire circa 250 link (in pratica, tutti gli articoli del CdS) in una list box. Quando seleziono la linea e premo il tasto invio la relativa pagina si apre in una popup indipendente (cosi da poter aprire + articoli contemporaneamente). Lo script che uso ora funziona... ma vorrei snellirlo (visto che poi crescerebbe a dismisura). Ossia, ora mi ritrovo questo script:
<SCRIPT LANGUAGE="Javascript">
function submenu(what) {
var selection = document.menuform.menu.selectedIndex;
var newloc = null;

if (what == 'menu') {
if (selection == 1) newloc = apri('art001.htm','a1');
else if (selection == 2) newloc = apri('art002.htm','a2');
else if (selection == 3) newloc = apri('art003.htm','a3');
else if (selection == 4) newloc = apri('art004.htm','a4');
else if (selection == 5) newloc = apri('art005.htm','a5');
else if (selection == 6) newloc = apri('art006.htm','a6');
else if (selection == 7) newloc =apri('art006bis.htm','a6b');
else if (selection == 8) newloc =apri('art006ter.htm','a6t');
else if (selection == 9) newloc =apri('art007.htm','a7');
else if (selection == 10) newloc =apri('art008.htm','a8');
else if (selection == 11) newloc =apri('art009.htm','a9');
else if (selection == 12) newloc =apri('art009bis.htm','a9b');
else if (selection == 13) newloc =apri('art009ter.htm','a9t');
else if (selection == 14) newloc =apri('art010.htm','a10');
else if (selection == 15) newloc =apri('art011.htm','a11');
else if (selection == 16) newloc =apri('art012.htm','a12');
}
if (newloc) setTimeout("location = \'" + newloc + "\'", 0);
}
var id,pause=0,position=0;

function apri(file,finestra) {
window.open(file,finestra, 'width=600,height=450,resizable=yes,scrollbars=yes ,statusbar=no');
}

</SCRIPT>

Qualcuno ha qualche idea su come fare ?

Ciao
Roberto