//You may not edit, modify or remove the credits, including this line
//Opt-In Automator JavaScript Program
//Copyright (c) Ravi Jayagopal 2002. 
//The full rights are owned by Ryan Deiss, and resale rights are NOT
//granted to the buyer or any other recipient of this script.
//Ryan Deiss is an Austin based internet business owner.
//Email: Ryan@SiteSightings.com for similar licenses
//Web site: http://www.SiteSightings.com

var myCookie;

// The following function getCookie was written by
// Duncan Crombie: dcrombie@chirp.com.au

  function getCookie(name) {
    name += "="; // append '=' to name string
    var i = 0; // index of first name=value pair
    while (i < myCookie.length) {
      var offset = i + name.length; // end of section to compare with name string
      if (myCookie.substring(i, offset) == name) { // if string matches
        var endstr = myCookie.indexOf(";", offset); // locate end of name=value pair
        if (endstr == -1) endstr = myCookie.length;
        return unescape(myCookie.substring(offset, endstr)); // return cookie value section
      }
      i = myCookie.indexOf(" ", i) + 1; // move i to next name=value pair
      if (i == 0) break; // no more values in cookie string
    }
    return null; // cookie not found
  }


function setCookie(name, value, expire) {
//alert("expire = " + expire);
          document.cookie = name + "=" + escape(value)
          + ((expire == null) ? "" :
            ("; expires=" + expire.toGMTString()))
}


function visited()
{
	setCookie("cyber","yes",null);
}

function Go()
{
myCookie = document.cookie;
if(getCookie("cyber") != "yes")
{
if (confirm(
// -------------- Modify only the next Line --------------- //

"STOP!! Don't Close This Window! \n\n -> For a VERY limited time, when you signup for 'Consequences 4 Life', you will receive newsletters packed with information... \n -> Newest research and health tips! \n -> Don't let this offer pass you by.\n\n ** Simply clicking on 'OK' will subscribe you via your default email program! **\n ** You need not enter your email address **\n\n (Or you can click 'Cancel' and signup using the form on the page.)"))

// -------------- Stop Editing Here --------------- //

{
	visited();
	document.cyber.button.click();
}
else
{
	visited();
}
}
//reset();
}

function reset()
{
setCookie("cyber",null,null);
}
