You are sure what add correctly code in "navbar" template, at the top?
PHP Code:
<!-- thread rating info -->
<script type="text/javascript">
<!--
function openDreamTRI(threadid) {
dreamTRIWindow = window.open('threadratinginfo.php?threadid=' + threadid, 'dreamTRI', 'directories=no, height=150, width=300, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no');
}
//-->
</script>
<!-- / thread rating info -->
Because with this, it is must work.