// Change the following three variable to suit your needs.
//  - autoresponder, subject and message

var autoresponder = "newsletter@woodingtrading.com";
// The e-mail address of your autoresponder.

var subject = "subscribe";
// Example 1: subscribe (or leave blank)
// Example 2: subscribe html
// Example 3: subscribe plain
// Example 4: subscribe HTML TRApopup

var message = 'Click OK to subscribe to our newsletter.\n\nWe will not share your details with anyone else.';
// This is the message that appears in the dialog box.
// Use \n in the message for a new line.

//////////////////////////////////////////////////
// DO NOT CHANGE ANYTHING BELOW THIS LINE       //
//////////////////////////////////////////////////

//////////////////////////////////////////////////
//                                              //
//             AUTORESPONSE PLUS (tm)           //
//       Sequential Autoresponder System        //
//                Version 2.12                  //
//                                              //
//   Copyright Gobots Internet Solutions, 2001  //
//             All rights reserved              //
//                                              //
//  For support and latest product information  //
//    visit http://www.autoresponseplus.com.    //
//                                              //
//  Use of AutoResponse Plus is subject to our  //
//   license agreement and limited warranty.    //
//  See the file license.txt for more details.  //
//                                              //
//////////////////////////////////////////////////

var cookieName = "arp";
var value = "arp";
var expires = "";

function arpAlert(message, cookieName, value, expires) {
    this.message = message || "";
    this.cookieName = cookieName || "";
    this.value = value || "";
    this.expires = expires || "";

    this.setCookie = setCookie;
    this.getCookie = getCookie;
    this.showConfirm = showConfirm;

    function setCookie() {
        var curCookie = this.cookieName + "=" + escape(this.value) +
        ((this.expires) ? "; this.expires=" + this.expires.toGMTString() : "");
        document.cookie = curCookie;
	} //function setCookie

    function getCookie() {
        var dc = document.cookie;
        var prefix = this.cookieName + "=";
        var begin = dc.indexOf("; " + prefix);
        if (begin == -1) {
            begin = dc.indexOf(prefix);
            if (begin != 0) return null;
        } else
            begin += 2;
        var end = document.cookie.indexOf(";", begin);
        if (end == -1)
            end = dc.length;
        return unescape(dc.substring(begin + prefix.length, end));
    } //function getCookie

    function showConfirm() {
        if (confirm(this.message)) {
            document.arpForm.submit();
        } else {
            return true;
        }
	} // function showConfirm
} // function arpAlert

function arpInit() {
	c = new arpAlert(message, cookieName, value, expires);
	if (!(c.getCookie())) {
		c.showConfirm();
		c.setCookie();
	}
} // function arpInit

function incARPForm() {
    var formcode = "<FORM name='arpForm' action='mailto:" + autoresponder + "?subject=" + subject + "' method='post'  enctype='text/plain'></FORM>";
    document.write(formcode);
} // function incARPForm

// All parts of the this code are Copyright Gobots Internet Solutions, 2002
// All Rights Reserved
