PRBool aSelected)
PRBool aSelected, PRBool aNotify)
nsHTMLSelectElement::OnOptionSelected(nsISelectControlFrame* aSelectFrame,                                      nsIPresContext* aPresContext,                                      PRInt32 aIndex,                                      PRBool aSelected){  //printf("OnOptionSelected(%d = '%c')\n", aIndex, (aSelected ? 'Y' : 'N'));  // Set the selected index  if (aSelected && (aIndex < mSelectedIndex || mSelectedIndex < 0)) {    mSelectedIndex = aIndex;  } else if (!aSelected && aIndex == mSelectedIndex) {    FindSelectedIndex(aIndex+1);  }  // Tell the option to get its bad self selected  nsCOMPtr<nsIDOMNode> option;  Item(aIndex, getter_AddRefs(option));  if (option) {    nsCOMPtr<nsIOptionElement> optionElement(do_QueryInterface(option));    optionElement->SetSelectedInternal(aSelected, PR_TRUE);  }  // Let the frame know too  if (aSelectFrame) {    aSelectFrame->OnOptionSelected(aPresContext, aIndex, aSelected);  }  return NS_OK;}