private static Element getElementById(String Id, DispHTMLDocument doc) { Element element = new Element(); try { element.element = doc.getElementById(Id); element.count = 0; } catch { } return(element); }