{literal}
<script type="text/javascript">

function confirm_delete_op(op_id, op_info)
{
    if (window.confirm(op_info+'\n\n{/literal}{t}Are you sure you want to delete this task?{/t}{literal}')) {
        location.href = '{/literal}{$smarty.const.PHPAGA_SELF}?action={$smarty.const.ACTION_OP_REMOVE}{if (isset($DELETE_OP_URL_EXTRA) && strlen($DELETE_OP_URL_EXTRA))}{$DELETE_OP_URL_EXTRA}{/if}{literal}&op_id='+op_id;
    }

}

</script>
{/literal}