At the moment we are conducting a survey to study the use of our website. We kindly request you to participate.
This is supposed to represent a host site for Site Survey, that is, a site whose owner has asked for a survey. The Site Survey script is added to every page on this site, and it should work flawlessly.
The following is supposed to happen:
This page also contains a text generated by a script of the site owner. This script may not be disturbed by the Site Survey script.
Leave site. The popup should now switch to the survey.
I set a status cookie to "Yes" when you're selected for the survey (and in this test version every visitor is selected for the survey). At the same time I make sure that the popup is opened as soon as you click on anything.
When you arrive at a page on this site and the cookie already reads "Yes", the script does nothing because it assumes you've already participated in the survey. That means that once you've closed the popup you're never bothered again.
However, in this special case I give you the option to erase the cookie, so that you can try the script again.