Ok this is my problem that no one can seem to answer. I have two javascripts in use. Once is for the popup I have and tells it to stay closed for 24hrs when closed. The other is
You need to wrap your code in a DOM ready handler, and you also missed the brackets following the function declaration. Try this: