for (var tName in g.terminals)
        {
            var t = g.terminals[tName];
            var o = {}
            o.visible = t.visible.checked;