<div id="inforightbtns">
    {if !$opentask->is_private || $curr_user_id==$opentask->todo_id}
        {if !isset($opentask->object_is_editable) || $opentask->object_is_editable}
            <span class="dialog_make_btn16 edit mobile_big24 smallbtns ui-corner-all"
                onclick="opentasks.open({$opentask->id}, false, '');"
                title="{$i.basic_edit}"></span>
            <span class="dialog_make_btn16 delete smallbtns ui-corner-all"
                onclick="opentasks.delete_entry({$opentask->id});"
                title="{$i.basic_delete}"></span>
            &nbsp;    
        {/if}
    {/if}
    <ul class="functionmenu">
        <li class="ui-corner-all"><span class="ui-widget-header ui-corner-all">{$i.basic_functions}</span>
            {include file="Opentasks/function_menu.tpl"}
        </li>
    </ul>    

</div>
<div id="inforight" class="below">
    {include file='r/hidden.tpl' name="opentasks_right_opentask_id" default=$opentask->id}
    {include file="Opentasks/info_right_table.tpl"}

    {if $opentask->address_id!=0}
        <h3 style="padding-top:10px;">
            <a href="{site_url url="start/open/addressesandcontacts/index/`$xjxcookie`/view/`$opentask->address_id`"}" onclick="usComm.windowOpen(this.href); return false;">
                {$i.opentasks_address}
            </a>
        </h3>
        {portlet file='addresses_right' id=$opentask->address_id}
    {else}
        <h3 style="padding-top:10px;">{$i.opentasks_address}</h3>
        {boolview value=FALSE}
    {/if}
</div>

    