// Do not remove, edit or modify this header! 
// Do not alter any part of the script below, except as explicitly specified. 
// PopUp-Mailer Version 3.0 
// PopUp-Mailer and the following code is Copyright Protected! 
// Copyright (c) Commercial Innovations 2002-2003. All rights reserved. 
// The purchaser of this program is only licesed to use it on their web pages. 
// You may not resell or giveaway any part of the Popup-Mailer program or code! 
// If you are interested in selling Popup-Mailer use the contact information below: 
// Website: http://www.commercialinnovations.com 
// Email: sales@commercialinnovations.com 


// You may modify Only the number that is directly below. 
var days = 1;

// In this setting, the Cookie is currently set to expire in one day. 
// To modify this, change the number '1' above, to be the number 
// of days until the Popup-Mailer will pop-up again. 
// For example, if you don't want the Popup-Mailer to show up again 
// until sixty days after a person's first visit to your site 
// set 'var days' to = 60;

var myCookie;

  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("mailer","yes",expire);
}

function Pop()
{ 
myCookie = document.cookie;
if(getCookie("mailer") != "yes")
{
if (confirm(


// -------------- You may modify Only the Text Messages Below --------------- //

"--------> FREE Money Making and Marketing Tips by Email <--------\n\nHere's what you'll get when you Subscribe to the Profit Tips Ezine:     \n\n  -> Insider advice from professional Internet Marketers.\n  -> Marketing Tips and Techniques that Really Work!\n  -> Money Making Techniques that will work for You!\n  -> Reviews and samples of the best Money Making Products.\n  -> 3 Best Selling eBooks for FREE, just for trying us out!\n \n  * Your email address will not be shared, rented, or sold!\n  * You can unsubscribe whenever you want!\n\n* Just click OK two times to subscribe via your default email program!       \n "))

// -------------- Stop Modifying Here --------------- //


{
	visited();
	document.mailer.button.click();
}
else
{
	visited();
}
}
//reset();
}

function reset()
{
setCookie("mailer",null,null);
}
//End of Popup-Mailer