<script language="JavaScript">
<!--
cookie_name = "BDG_Cookie";
function doCookie() {

        if(document.cookie) {

                index = document.cookie.indexOf(cookie_name);
		
        } else {

                index = -1;

        }

        if (index == -1) {
		
                document.cookie=cookie_name+"=1; Expire=";
		
        } else {

                countbegin = (document.cookie.indexOf("=", index) + 1);

                countend = document.cookie.indexOf(";", index);
		alert(countend );
                if (countend == -1) {
			
                        countend = document.cookie.length;

                }

                count = eval(document.cookie.substring(countbegin, countend)) + 1;

                document.cookie=cookie_name+"="+count+"; expires=";
		//01-Apr-98 GMT
        }

}

function gettimes() {

    if(document.cookie) {

        index = document.cookie.indexOf(cookie_name);

        if (index != -1) {

            countbegin = (document.cookie.indexOf("=", index) + 1);

            countend = document.cookie.indexOf(";", index);

                if (countend == -1) {

                    countend = document.cookie.length;

                }

            count = document.cookie.substring(countbegin, countend);

            if (count == 1) {

                return ("<b>"+count+"</b> time before.</b>");

            } else {

                return ("<b>"+count+"</b> times before.</b>");

            }

        }

    }

    return ("<b>0</b> times before.</b></b>");

}
//  -->
</script>
<script language="JavaScript">
<!--
	function retrace()
	{
	  history.back() 
	}
// -->
</script></head>
<body onload="doCookie()">
<center><h1>Cookies</h1></center>
<h3>What cookies do (and don't do).</h3>
<p>Browsers that support cookies have a file called cookies.txt in one of their directories.  That file (and only that file) is available for web sites that make use of cookies to write a small amount of information to that single file for later use.  Most commonly this exchange is used with online ordering where there's a shopping cart system, etc; the server passes you a cookie that details your choices so that as you move from page to page making selections, you can just &quot;toss it in your shopping cart&quot;, and when you go to order, the system reads back what you've selected, and can total your order.</p>
<p>Cookies can also be used to provide users with customized versions of web
sites (say on a programming page, it will serve up info on BASIC programming, but not C++).  At other times, some sites want to keep track of how often you visit; the date and time of your last visit might be stored in your cookies.txt file, and retrieved by the site the next time you visit there, generating information for an administrative report.</p>
<p>A site using cookies <b>CANNOT</b> read anything on your hard drive except for the the information in your cookies.txt file that <b>IT SPECIFICALLY</b> wrote there previously. No site can read any information in the cookies.txt file that it didn't write itself.</p>
<p>The cookies.txt file <b>DOES NOT</b> record everything you do. The file itself is a plain text file. Just like any other plain text file on your system, it cannot of its own accord record, send, read, or do anything.
Your browser, acting upon a request by the server, will read or write to the
cookies.txt file.</p>
<p>Think of this like an ATM machine.  You put your card in, and ask &quot;how much money do I have&quot;, and the machine will tell you. You cannot put your card in the machine and ask &quot;How much money does that guy who was ahead of me have&quot;; you are only allowed access to <b>YOUR</b> data.  Same
with the cookies.txt file; a site is only allowed access to the data it
previously &quot;banked&quot; there.</p>
<p>The cookies.txt file <b>DOES NOT</b> indiscriminately give out your name and email address.  If you submit such data to a site using cookies it may store that information in your cookies.txt file for its own use later, but only by virtue of your having given it to them. As stated above, only the site that wrote the cookie has access to this data.</p> 
<h3>A simple cookie</h3>
<p>All this JavaScript does is make a note in your cookies.txt file of the number of times you have been to this page. Click the refresh button from browser menu bar, the number below will have changed. If you are revisiting this page after an earlier surfing session, the correct number of times you have been here should be displayed.</p>
<p><script language="JavaScript">document.write("You have been to this page "+gettimes());</script>