<!--
/*
* The following code is Copyright(c) 2002 Steve Shaw and Ryan Diess.
* All rights reserved. 
*/
var displayText = "When you sign up for a free newsletter you'll receive weekly solutions for your family...valuable parenting tips for immediate improvemment and kinder, more obedient and respectful children.\n\nSubscribe automatically - just hit the button below!\n\nComplete privacy: Your email address is never revealed to third parties";
var delay = "2";
var email = "solutionsforfamilies@smartresponderplus.com";
var buttonText = "Subscribe!";
var emailSubject = "Subscribe Me";
var cookie = "optinautomator";
function optin(text){
setOptinCookie();
if(confirm(text)){
document.mailer.subscribe.click();
}
}
function showButton(){
document.write("<form name=mailer id=mailer method=post action='mailto:"+email);
document.write((emailSubject!="")?"?subject="+emailSubject:"");
document.write("' ENCTYPE=\"text/plain\">");
document.write("<input type='submit' onclick='setPermanentCookie();'");
if(!document.layers){
document.write(" STYLE='cursor:hand;background:#FFCC00' onMouseOver=\"this.style.backgroundColor = '#FFFFFF'\" onMouseOut=\"this.style.backgroundColor = '#FFCC00'\"");
}
document.write("  value='Subscribe!");
document.write("' name=subscribe id=subscribe></form>");
}
function Go(){
if (getOptinCookie(cookie)==""){
setTimeout("optin(displayText);",delay * 1000);
}
}
function getOptinCookie(cookieName) {
var id = cookieName + "=";
var cookievalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(id);
if (offset != -1) {
cookievalue = "x";
}
}
return cookievalue;
}
function setOptinCookie () {
var today = new Date();
var expdate = new Date(today.getTime() + 1 * 24 * 60 * 60 * 1000);
document.cookie = cookie + "=done;expires=" + expdate.toGMTString();
}
function setPermanentCookie () {
var today = new Date();
var expdate = new Date(today.getTime() + 311040000000);
document.cookie = cookie + "=done;expires=" + expdate.toGMTString();
}
//-->

