xyz = document.nomeform.elements["campo[]"].options.length
ciao