public void jsFunction_waitCraft(String wnd, int timeout) {
            deprecated();
            int cur = 0;
            while (true) {
                if (cur > timeout)
                    break;
                if (UI.instance.make_window != null)
                    if ((UI.instance.make_window.is_ready) &&
                            (UI.instance.make_window.craft_name.equals(wnd))) return;
                Sleep(25);
                cur += 25;
            }
        }