To use the ShowMessage method within the JSDialog unit then you would use it like:
ShowMessage('My Message');