<!-- BEGIN site/ajax_input.tt -->
    [%
        DEFAULT size = 20;
        DEFAULT max_length = 255;
    %]

    [% input = id || field # use 'id' if supplied, otherwise 'field' %]
    
    <input type="text" name="[% field %]" id="[% input %]" value="[% c.query.param(field) %]"
        size="[% size %]"
        [%- IF c.cfg('use_cgi_ajax') -%]
            onChange="do_ajax(['[% input %]'], ['bad_[% input %]']); return true;"
        [% END %] maxlength="[% max_length %]" [% site.html.onfocus %] />
	[% # error_${field} # doesn't work ?? %]
    <span class="ajax_error"><em id="bad_[% input %]"></em></span>
<!-- END site/ajax_input.tt -->