My apologies.. to get rid of those Unknown Command errors, change the two lines that currently read
to
var $+(%,sys.dk,%sys) = $5
As to your dialog, I haven't really looked at it yet.. I was more concerned with correcting that error.. watch for further posts.