So try $dialog($dname).cw and $dialog($dname).ch, though I have no idea what purpose that script could serve anyway.