Custom Code/Script in a button

Please review Posting Guidelines for the Code Help Category and update your post accordingly. How else could anyone help?