")))
(setf ruleCommentLabelCell.innerHTML "Kommentar "
textInput.name (+ "rule_" id)
textInput.id "textInputField"
textInput.rows 4
textInput.cols 70
textInput.value ""
textInput.ruleId rule-id
;;textInput.className doc.className
textInput.onclickMasqued (new (Function (+ "EditRule('" id "', '" type "');"))))
;; push text of current field into undo list
(setf (aref undoList id) (list textInput.value))
;; display text in textarea
(ruleRow.insertAdjacentElement "afterEnd" ruleCommentRow)
(ruleCommentRow.appendChild ruleCommentLabelCell)
(ruleCommentRow.appendChild ruleCommentCell)
(ruleCommentCell.insertAdjacentElement "afterBegin" textInput)))))
(defun InsertNewRule (lang)
(restoreField "endret")
(let* ((rulesTable (document.getElementById "tblRulesTable"))
(ruleNameRow (rulesTable.insertRow 0))
(ruleNameLabelCell (document.createElement ""))
(ruleNameCell (document.createElement " | "))
(statusRow (rulesTable.insertRow 1))
(statusLabelCell (document.createElement " | "))
(statusCell (document.createElement " | "))
(ruleBodyLabelCell (document.createElement " | "))
(ruleBodyCell (document.createElement " | "))
(textInput (document.createElement " |