PRBool isSelected; IsOptionSelectedByIndex(i, &isSelected); if (isSelected) {
if (IsOptionSelectedByIndex(i)) {
nsHTMLSelectElement::FindSelectedIndex(PRInt32 aStartIndex){  mSelectedIndex = -1;  PRUint32 len;  GetLength(&len);  for (PRInt32 i=aStartIndex; i<(PRInt32)len; i++) {    PRBool isSelected;    IsOptionSelectedByIndex(i, &isSelected);    if (isSelected) {      mSelectedIndex = i;      break;    }  }  return NS_OK;}