function TextAttr (size, color) { switch (TextAttr.arguments.length) { case 0: this.size = 16; this.color = 'white'; break; case 1: this.size = size; this.color = 'white'; break; default: this.size = size; this.color = color; } this.getStyle = 'color:' + this.color + ';font-size:' + this.size + 'px;'; } function Button (id, href, col, txt, width, height, txtattr) { this.href = href; this.color = col; this.txt = txt; this.width = width; this.height = height; this.txtattr = txtattr; if (this.color=='hu.red') { this.color = '#8A0F14'; } if (this.color=='hu.blue') { this.color = '#00376C'; } if (this.color=='hu.green') { this.color = '#00572C'; } if (this.color=='hu.sand') { this.color = '#D2C067'; } this.getStyle = 'width:' + this.width + 'px;height:' + this.height + 'px;background-color:' + this.color +';'; } Button.prototype.getHTML = function () { html = ''; return (html); } function setForm (name, action, buttons) { html = '
'; document.getElementById(name).innerHTML = html; }