// Button control class
var ButtonCtl = {
   create: function(text, action, id) {
      return '<a href="#" ' + (id!=null ? 'id="' + id + '" ' : '') + 'class="stdButton" onclick="' + action + 'return false;" onmouseover="ButtonCtl.hover(this);" onmousedown="ButtonCtl.down(this);" onmouseup="ButtonCtl.normal(this);" onmouseout="ButtonCtl.normal(this);"><font color="#666666">' + text + '</font></a>';
   },
   
   hover: function(el) {
      el.className = 'stdButton btnHover';
   },
   
   down: function(el) {
      el.className = 'stdButton btnDown';
   },
   
   normal: function(el) {
      el.className = 'stdButton';
   }
};
