// set the focus to the first form element
Event.observe(window, 'load', function () { Form.focusFirstElement($$('form.base')[0]) } );

// http://www.alistapart.com/d/prettyaccessibleforms/
Event.observe(window, 'load', FixLabels);

function FixLabels(){
  $$('form.table label').each( function(i) {
    var labelSpan = document.createElement('span');
        labelSpan.style.display = 'block';
        labelSpan.style.width = document.defaultView.getComputedStyle(i, '').getPropertyValue('width');
        labelSpan.innerHTML = i.innerHTML;
    i.style.display = '-moz-inline-box';
    i.innerHTML = null;
    i.appendChild(labelSpan);
  });
}
