event handler function for ScriptDialog openDialog()..?