private string getDomRadioValue(string id)
{
HtmlElement he = (HtmlElement)this.browser.Invoke(new Func<HtmlElement>(() => this.browser.Document.GetElementById(id)));
if (he != null) {
HtmlElementCollection hec = he.GetElementsByTagName("input");
foreach (HtmlElement e in hec) {
if (e.GetAttribute("type").ToLower() == "radio" && e.GetAttribute("checked").ToLower() == "true") {
return e.GetAttribute("value");
}
}
}
return null;
}