%# Maybe Computer Science should be in the College of Theology.
%# 		-- R. S. Barton
% foreach my $key (qw/left center right/) {
%    my $disabled = ($key eq ($attr->{align} ||= 'left'));
</td><td width=20>
<& /Edit/Elements/Button,
    Name => "align$key",
    ImagePath => '/RG/img/',
    Image => "align\u$key",
    Text => loc($key),
    Style => 'width:19; height:19',
    Javascript => "
	document.getElementById('align$attr->{align}').src
	    = '/RG/img/align\u$attr->{align}.png';
	document.getElementById('align$key').src
	    = '/RG/img/align\u${key}Disabled.png';
	document.getElementById('align').value = '$key';
	document.forms[0].text.focus();
	this.form.submit();
    ",
    Disabled => $disabled &>
% }
</td><td>
<input type="hidden" id="align" name="align" value="<% $attr->{align} %>">
<%ARGS>
$attr
</%ARGS>
