There's a WordPress plugin for that: http://wordpress.org/extend/plugins/confirm-publishing-actions/