I also think you want to change: if $user.isaccountlocked = true

to: if $user.isaccountlocked <> 0
_________________________
Home page: http://www.kixhelp.com/hb/