The attached script is used to add cookies upon form submission. This script will also check if a cookie already exists, and then calms the submiter's anxiety with a friendly message and excellent gif.
The script waits for the form to submit. Once it does, it checks to see if the cookie exists. If not, it's created and added to the user's browser.
If it does, this means the user has submitted before and needs assistance calming their nerves! The script adds a message to the form and includes a friendly gif at the end of the form.
This function can be added by copying and pasting the entire code snippet into the html document, one line directly above the tag.