        <script language="JavaScript">
        <!--            var start = new Date();
            var needpopup = true; 
            function popup()            {
                // this checks to see if there are any cookies
                if (document.cookie.length > 0)                {
                    // this checks to see if there is a cookie with the name popup.. if there is, it sets needpopup to false
                    // so that the popup is not opened again, this is a session cookie.. so when the user closes their browser
                    // it will be removed.. and the next time they visit the website the popup will be opened again
                    if (document.cookie.indexOf("popup") != -1)
                    {
                        needpopup = false;
                    }
                } 
                // this checks if there is a reason to open the popup.. this will happen given two conditions are met
                // 1. the user has NOT clicked on and of the order links
                // 2. the popup has not been opened before (there is no cookie)
                if (needpopup)
                {
                    // this just sets the date (and time) when the user clicks on the view e-book link
                    var end = new Date(); 
                    // this line here will create a session cookie, so we don't open the popup again
                    document.cookie = "popup=true"; 
                    // this if statement here is where it determines which window to popup after 20 seconds.
                    // (end - start) results in the number of miliseconds the user was on the page for
                    // which means if we divide by 1000, we get the number of seconds
                    // so to sumarize, if the user is on the site for less than 20 seconds, win1.html will be
                    // opened in a popup. if the user is on the site for more then 20 seconds it will popup
                    // win2.html
                    if ((end - start) / 1000 < 20)
                    {
                        window.open("http://www.best-family-photography-tips.com/free-photography-stuff.html", "Window1", "menubar=no,width=" + screen.width + ",height=" + screen.height + ",toolbar=no");
                    }
                    else
                    {
                        window.open("http://www.best-family-photography-tips.com/leaving-baby.html", "Window2", "menubar=no,width=" + screen.width + ",height=" + screen.height + ",toolbar=no");
                    }
                }
            } 
            function order()
            {
                // this ensures the popup is not opened
                needpopup = false; 
                // this line here will create a session cookie, so we don't open the popup again
                document.cookie = "popup=true";
            }
        //-->
        </script>