anchor.diff:            end;
           end;//for i
   
  -      if (uzavren_glob) then
  -       Self.Krok := 13
  +      if (anyUzavren) then
  +       Self.Krok := _JC_KROK_CEKANI_PREJEZDY
         else
  -       Self.Krok := 14;
  -
  -     end;
  -
  -
  -   13:begin
  +       Self.Krok := _JC_KROK_FINALNI_ZAVER;
  +
  +     end;
  +
  +
  +   _JC_KROK_CEKANI_PREJEZDY:begin
          // kontrola stavu prejezdu
          for prjZaver in Self.fproperties.Prejezdy do
           begin
  
positive.code:     blk:TBlk;
      aZaver:TJCType;
      neprofil:TBlkUsek;
      uzavren,uzavren_glob:boolean;
      str:string;
      npCall:^TNPCallerData;
      spri:Integer;
  
negative.code:  writelog('DN JC '+Self.nazev, WR_VC);
   Self.fstaveni.TimeOut := Now + EncodeTime(0, 0, _JC_TIMEOUT_SEC, 0);
  
   if (Self.fstaveni.prjWasClosed) then
     Self.Krok := _JC_KROK_ZAVRIT_PREJEZDY
   else
     Self.Krok := _JC_KROK_FINALNI_ZAVER;
  end;
  
  ////////////////////////////////////////////////////////////////////////////////
  