Here's what I need...
// Message Box Script Start Update innerhtml depending on the following --------
// Initate Counter for each page load
// 1) Are there any CRITICAL messages? If so, test their conditions and possibly show.
// 2) If no critical messages, then How recently have we shown any message? We need cookie counter for how many pages since last message. If > 5, proceed, else exit and show no message
// 3) Are we on the search results page? If so, do the search results tests - first for exact matches of the search query, then for the presence of a string in the search query.
// 4) If not in search page, then look at page URL. If we're in a page that might have a message, do the tests on whether to show it.
// 5) Test on whether to show a message for a page: First, is there a date condition? If more than one date range, then choose narrowest. Then is there more than one message, if so use randomizer
// AFTER ANY MESSAGE DISPLAY, RESET COUNTER