io ho un form cosi:

<select id="tipo2" name="tipo2" class="select" onchange="showList()" >
<input name="mittente">
e un link che crea un clone
quindi l'array è "tipo2"

in pratica con showlist() apro una popup e dovrei inviare alla popup anche una variabile che è l'indice dell'ultimo array (tipo2)

questo è lo script :

<SCRIPT LANGUAGE="JavaScript">
<!--
function showList() {

(********** qui devo recuperare l'ultimo indice dell'array

if (form1.tipo2.value=="interno") {
var width = 350;
var height = 500;
var left = parseInt((screen.availWidth/2) - (width/2));
var top = parseInt((screen.availHeight/2) - (height/2));
sList = window.open("popup_mittenti.asp","list","width=350 ,height=500,scrollbars,top=" + top + ",left=" + left);
//sList = window.open("popup_mittenti.asp","list","width=350 ,height=500,scrollbars");
}