Unexpected token ILLEGAL - how to check what is wrong ?

Hi,

Creating new tabbar page I’m loading html page with parameters , but it return error : Unexpected token ILLEGAL - dhtmlx.js : 684 . Please help to find where is the error or please advice how to find error . It go crazy me … :frowning:

      function mod_so( cRez )
      {
         var cHtml = "", nLn = 0, cId = "";
         cMod = modgrid.getSelectedRowId();
         cMod = cMod.replace(/^\s+|\s+$/g,'');
         cId  = cMod.replace(/-/gi, "" );
         var tabID = "m" + cId;
         var cUzr  = cMod + " " + ( cRez == "opr" ? "opr." : ( $app_lng == "lt" ? "sud." : "comp." ) );
         var tab   = modtab._tabs[ tabID ];
         if ( !tab )
         {
            cHtml = "mod_mo.html?mod=" + cMod + "&mos=" + cRez;
            modtab.enableTabCloseButton( true );
            modtab.addTab( tabID, cUzr, "100px" );
            nLn = parseInt( cUzr.length * 7 ) + 35;
            modtab.setLabel( tabID, cUzr, nLn );
            modtab.setHrefMode( "ajax-html" );
            modtab.setContentHref( tabID, cHtml );
         }
         modtab.setTabActive( tabID );
      }

Html in attachement .

Many thanks in advance ! With best regards !
mod_mo.zip (3.77 KB)

OK , found answer in “stackOverflow” - unrecognized symbols . Rewrote part of source , now is working …