res = domDoc->GetElementsByTagName("input", getter_AddRefs(nodeList));
res = domDoc->GetElementsByTagName("INPUT", getter_AddRefs(nodeList));
NS_IMETHODIMP nsComposeAppCore::SendMessage2(PRInt32 * _retval){	nsresult res = NS_OK;	nsCOMPtr<nsIDOMDocument> domDoc;	nsCOMPtr<nsIDOMNode> node;	nsCOMPtr<nsIDOMNodeList> nodeList;	nsCOMPtr<nsIDOMHTMLInputElement> inputElement;	nsAutoString msgTo;	nsAutoString msgCc;	nsAutoString msgBcc;    nsAutoString msgNewsgroup;	nsAutoString msgSubject;	nsAutoString msgBody;	if (nsnull != mWindow) 	{		res = mWindow->GetDocument(getter_AddRefs(domDoc));		if (NS_SUCCEEDED(res) && domDoc) 		{			res = domDoc->GetElementsByTagName("input", getter_AddRefs(nodeList));			if ((NS_SUCCEEDED(res)) && nodeList)			{				PRUint32 count;				PRUint32 i;				nodeList->GetLength(&count);				for (i = 0; i < count; i ++)				{					res = nodeList->Item(i, getter_AddRefs(node));					if ((NS_SUCCEEDED(res)) && node)					{						nsString value;						res = node->QueryInterface(nsIDOMHTMLInputElement::GetIID(), getter_AddRefs(inputElement));						if ((NS_SUCCEEDED(res)) && inputElement)						{							nsString id;							inputElement->GetId(id);							if (id == "msgTo") inputElement->GetValue(msgTo);							if (id == "msgCc") inputElement->GetValue(msgCc);							if (id == "msgBcc") inputElement->GetValue(msgBcc);							if (id == "msgSubject") inputElement->GetValue(msgSubject);                            if (id == "msgNewsgroup") inputElement->GetValue(msgNewsgroup);						}					}				}				if (mEditor)				{					mEditor->GetContentsAsText(msgBody);					SendMessage(msgTo, msgCc, msgBcc, msgNewsgroup, msgSubject, msgBody);          				}			}		}	}		return res;}