Graham,

welcome to the board !

Hmmm ... have you verified that the regpath is the same for 9x ???
Seems to me that your code is not the cause !

btw. : to suppress console output (return values of functions) add a 'nulifier' before functions like :

$nul = function(param)

hth

Jochen
_________________________