This is one of Hans' recipes: Just a request for $HTMLHeaderFmt['toggleobj'] to be moved into function Toggle(), so that the JS is only written when the function is used. -- Best, Marc