<possibly>
function atnbgaddaddnotedialog() {
var dialog = create()
id(dialog);style(dialog);instruction(dialog);input(dialog);do(dialog)
function create() {
var dialog = document.createElement("div")
document.getElementById("atnbgframe").appendChild(dialog)
return dialog}
function id(dialog) {
var id = document.createAttribute("id")
dialog.setAttributeNode(id)
id.value = "atnbgaddnotedialog"}
function style(dialog) {
var style = document.createAttribute("style")
dialog.setAttributeNode(style)
style.value = "position:absolute;left:30%;top:30%;right:30%;bottom:30%"
style.value = style.value + ";background-color:white"}
function instruction(dialog) {
var idiv = document.createElement("div")
dialog.appendChild(idiv)
var instruction = "type or paste note in input box:"
var i = document.createTextNode(instruction)
idiv.appendChild(i)}
function input(dialog) {
var textarea = create()
style(textarea);id(textarea)
dialog.appendChild(frame(textarea))
function create() {
return document.createElement("textarea")}
function id(textarea) {
var id = document.createAttribute("id")
textarea.setAttributeNode(id)
id.value = "atnbgtextarea"}
function style(textarea) {
var style = createAttribute("style")
textarea.setAttributeNode(style)
style.value = "width:100%;height:100%"}
function frame(textarea) {
var frame = document.createElement("div")
var style = document.createAttribute("style")
style.value = "width:100%;height:30%"
frame.appendChild(textarea)
return frame}
}//input
function do(dialog) {
var do = create(dialog)
style(do);link(do)
function create(dialog) {
var do = document.createElement("a")
dialog.appendChild(do)
return do}
function style(do) {
var style = document.createAttribute("style")
do.setAttributeNode(style)
style.value = "color:burlywood;background-color:lightgrey"}
function link(do) {
var link = document.createElement("href")
do.setAttributeNode(link)
link.value = "javascript:atnbgaddnote()"}
}//do
}//atnbgaddaddnotedialog
</possibly>