Thursday, August 4, 2005, 9:26:02 AM, Mateusz wrote: > First try of the answer (sorry but I haven't tested it - don't have > time): shouldn't you also: global $pagename; ? That is not necessary. $pagename works fine inside functions. thanks for looking! Best, ~Hans