int rows = ((Integer)itsNatDoc.getUserValue("rows")).intValue();
Element elem = (Element)evt.getCurrentTarget();
Document doc = elem.getOwnerDocument();
Element pattern = doc.getElementById("row-pattern");
HTMLElement newRow = (HTMLElement)pattern.cloneNode(true);
newRow.setAttribute("id","row-" + rows);
newRow.setAttribute("style","display:block;color:red;");
HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("add-row-value");
newRow.appendChild(doc.createTextNode(rows + " - " + inputElem.getValue()));