Here you go.
Just copy and paste into the BODY section.
You can even customize the message that comes up.
Just type your message between the quotes where it says function disabled on teh line that starts var message=
Here it is , and at the bottom is a link to where I got it from. There is a ton of great info there. Feel free to PM me with any questions you may have.
-----END OF CODE----
LINK - http://www.dynamicdrive.com/dynamicindex9/noright.htm