How to create a function for a pop up in OpenERP
You can write a small wizard to do so.refer to openerp documentation for how to.
I have created a button in debugging mode of OpenERP and want to display a message on click of that button.

This is the button Ex. then How to write an action on click of this button mainly the popup and message is required