AFAICS the manipulation with 'foo' makes no sense in Javascript. I would just remove the test (which seem to fail now) and the 'else' branch. -- Waldek Hebisch hebisch at math.uni.wroc.pl