//ListSurge v2.0
//Copyright Ravi Jayagopal 2001-2002
//Ravi@CyberConneXions.com / www.CyberConneXions.com
//Leave this notice intact. It may not be removed or modified
//Contact Ravi for Resell Rights or Master Resell Rights

//Modify only the number below
var days = 0;

// Cookie is currently set to expire in 3 days.
// To modify, change the number '3' in the above equation -> days = 3
// to be the # of days until expiry
// For example, if you don't want the pop-up to show up
// for up to one year after the visitor visited your site
// set days = 365 in the above equation.
// If you want it to expire upon closing the browser,
// then set it to days=0.

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))
}

function visited()
{ 
	var expDate = new Date();
	var expiry = 3 * 24 * 60 * 60 * 1000;
	expDate.setTime( expDate.getTime() + expiry );
	expire = expDate.toGMTString();
	//alert("Expire = "+ expire);
	setCookie("cyber","yes",expire);
}

function Go()
{ 
myCookie = document.cookie;
if(getCookie("cyber") != "yes")
{
if (confirm(
// -------------- Modify only the next Line --------------- //


"--------> THE FUTURE OF THE INTERNET IS LOCAL <--------\n\n Subscribe for FREE to Local Business Today and you'll receive a great re-brandible ebook:\n\n -> Marketing Your Local Business Online \n -> Plus Local Marketing Tools and Resources\n -> You can Unsubscribe any time\n\n--------> Simply click on OK twice. <--------\n "))


// -------------- Stop Editing Here --------------- //

{
	visited();
	document.cyber.button.click();
}
else
{
	visited();
}
}
}
//End of ListSurge
