obj = document.forms[0].nombreSelect; num =0; for (i=0; opt=obj.options[i];i++) if (opt.selected) num++; alert(num+' marcados');