ounblur="alert(indice(this))"

function indice(o) {
e = o.form.elements;
rv = -1;
for (var i=0;i<e.length;i++) {
if(o==e[i]) rv=i
}
return rv
}

ciao