// Linuxer: added index function createButton (element, text, tag, add, index) { if(!tag) tag = text; var button = document.createElement("input") || {}; button.type = 'button'; button.className = 'button'; button.value = text || '---'; button.onclick = function() { insertTag(element, tag, this); }; if(add) add(button); if(help[tag]) button.title = help[tag]; // Linuxer: add tabindex if index is defined if(index) button.tabIndex=index; return button; }