            <th style="cursor:pointer;" onclick="document.getElementById(
                [% if $sort == "ticketreferenzid" %]
                    'sortorder').value='[% if $sortorder == "DESC" %]ASC[% else %]DESC[% /if %]'
                [% else %]
                    'sort').value='ticketreferenzid'
                [% /if %];submitForm2();">
                &nbsp;
                [% $user->gettext('Referenzticket') %]&nbsp;
                [% if $sort == "ticketreferenzid" %]&nbsp;<img src="images/sort[% if $sortorder == "DESC" %]desc[% else %]asc[% /if %].gif" width="11" height="11" border="0" alt=""  />[% /if %]
                &nbsp;
            </th>