Hola:
Hace poco hubo una pregunta similar, pero no recuerdo cual, así que te contesto... tienes que fabricarte esa función:
Código:
function indice(cual) {
f = cual.form;
n = cual.name;
for (var i = 0, nombres = f[n], total = nombres.length; i < total; i++) if (f[n][i] == cual) return i;
}
Para probarlo:
Código:
<form>
<input name="t[]" type="checkbox" onclick="alert(indice(this))">
<input name="t[]" type="checkbox" onclick="alert(indice(this))">
<input name="t[]" type="checkbox" onclick="alert(indice(this))">
<input name="t[]" type="checkbox" onclick="alert(indice(this))">
<input name="t[]" type="checkbox" onclick="alert(indice(this))">
<input name="t[]" type="checkbox" onclick="alert(indice(this))">
</form>
Saludos