Ketil,

yup, thats a simple one :

There is a " too much in the 4th line of your post ... writevalue($skey ","SharedTemplates",...

hth

Jochen
_________________________