or simply messageboxes with:
error("this is a test, press ok to continue, cancel to exit");