crea un file con un nome qualunque tipo mio.js
all'interno ci copi lo script
function namosw_goto_byselect(sel, targetstr)
{
var index = sel.selectedIndex;
if (sel.options[index].value != '') {
if (targetstr == 'blank') {
window.open(sel.options[index].value, 'win1');
} else {
var frameobj;
if (targetstr == '') targetstr = 'self';
if ((frameobj = eval(targetstr)) != null)
frameobj.location = sel.options[index].value;
}
}
}
e poi per richiamrlo
in ogni head delle tue pagine scrivi
<script language="JavaScript" src="mio.js"></script>
ciao