/*===============================================================
COPYRIGHT NOTICE
-----------------------------------------------------------------
Copyright 2005 Donald MacLean

This file is part of the SpamSpoofer package.

The copyright  holder can be reached at www.macleans.net.

SpamSpoofer  is free  software;  you can  redistribute it  and/or
modify it  under the terms of  the GNU General  Public License as
published by  the Free Software  Foundation; either version  2 of
the License, or (at your option) any later version.

SpamSpoofer is  distributed in the  hope that it will  be useful,
but WITHOUT  ANY WARRANTY; without  even the implied  warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along  with  SpamSpoofer; if  not,  write  to  the Free  Software
Foundation,  Inc.,  51  Franklin  St,  Fifth  Floor,  Boston,  MA
02110-1301   USA.    An   on-line   version   is   available  at:
http://www.gnu.org/licenses/licenses.html
===============================================================*/


/*===============================================================
MANUAL
-----------------------------------------------------------------
NAME
     spooflocals.js - local variables for SpamSpoofer package

SYNOPSIS
     This  file  is  automatically  included in  any  file  using
     SpamSpoofer

DESCRIPTION
     The idea is that you should be able to adapt the SpamSpoofer
     package  to your site  without editing  any other  file than
     this one. In fact, you don't  even have to edit this one, if
     you  don't  plan  to  call  the functions  which  use  these
     variables, as explained below.

     Most  of these  variables are  explained in  the interactive
     SpamSpoofer MANUAL, where there are examples of their use.

VARIABLES
   DEMODIR
     The  name  of  a  directory containing  the  original  files
     extracted from the downloaded SpamSpoofer package, including
     the zip file itself.  This is so that if you make changes to
     your copies of the files, the Interactive MANUAL -- which is
     linked to from the main  SpamSpoofer window, and which is an
     important part of the package -- will still work.
   DEFSUBJECT
     This  is the  default  subject,  which will  be  put on  the
     Subject line of all  emails generated by SpamSpoofer, unless
     a subject  is specified  in the call  to 'spoofer()'  (or to
     'callspoofer()') or is encoded in the email address. (Can be
     left empty.)
   SPOOFMASTERID
     A unique  (on your  site) id for  the webmaster.   This will
     enable you to store part  of the webmasters email address in
     another file  and only paste together the  parts at runtime,
     after the visitor  had done a copy and  paste.  If you don't
     plan to use the  function 'getwebmaster()', there is no need
     to set  this variable.  See the Interactive  MANUAL for more
     information.
   SPOOFMASTER
     This variable  is designed to contain  the camouflaged email
     address of the current webmaster  of your site. It is picked
     up  by  a  call   to  'getwebmaster()', which  then  invokes
     SpamSpoofer  with it.   Doing  it this  way  means that  the
     webmaster's address  ONLY OCCURS IN  ONE PLACE ON  THE WHOLE
     SITE, and that is  right here in the variable 'SPOOFMASTER'.
     When a new webmaster takes over, there is thus only one line
     of  code to  edit. If  you don't  plan to  use  the function
     'getwebmaster()', there is no need to set this variable.
   SPOOFLINKIMG
     This  variable   is  designed  to  contain   the  file  name
     (including path, if it  is not in the SpamSpoofer directory)
     of a default image for SpamSpoofer to use in the body of the
     links it  generates on the  HTML page.  For example,  if you
     have a table of names, you could have a column containting a
     small  image  of  an  envelope  on  each  line  on  which  a
     (camouflaged)  email address is  available.  If  the subject
     argument to 'spoofer()' is '#SPOOFLINKIMG#', this image will
     be  inserted  as the  body  of  the  hyperlink on  the  HTML
     page. If  you don't plan to  use this argument,  there is no
     need to set this variable.
   MYID
   ME
   MYADDR
   MYSUBJ
     These  variables are  used by  the function  'getme()'  in a
     similar way to 'getwebmaster()'s use of SPOOFMASTER, etc. If
     you don't  plan to  use the function  'getme)', there  is no
     need to set this variable.
   DEBUBn, n = 1,2,...,5
     These variables can be set when debugging a file,  and their
     values written out by linking to the file 'spoofdebug.html'.
     See that file for more information.
   DEBUG_ON
     If this variabale  has the value 'true', a  hyperlink to the
     file 'spoofdebug.html'  will be  generated on any  HTML page
     which contains  a call  to 'spoofdebugger()' (and  which, of
     course,  has included  'spoofutils.js').   Clicking on  this
     link will  show you the  values of all the  DEBUGn variables
     (and  any  other  variables  that you  may  have  introduced
     yourself in  the file 'spoofdebug.html').   Note that 'true'
     is a  Boolean literal in  JavaScript. This means that  it is
     NOT  a string and  should NOT  be enclosed  within quotation
     marks.   See   the   declaration   below.   See   the   file
     'spoofdebug.html' for more details.

A NOTE ABOUT VARIABLE SCOPE IN JAVASCRIPT
     It  is NOT  an error  in  JavaScript to  declare a  variable
     twice.  The second  declaration simply overwrites the first.
     If you need  convincing, just put this code  in an HTML file
     and see for yourself:
 
       <SCRIPT TYPE="text/javascript">var blip = "yes";</SCRIPT>
       <SCRIPT TYPE="text/javascript">var blip = "no";</SCRIPT>
       <SCRIPT TYPE="text/javascript">
         document.write("blip == " + blip);
       </SCRIPT>
 
     All of the variables mentioned  above, if they occur in this
     file  ('spooflocal.js'), OVERWRITE  the  variables with  the
     same   name  in   the  file   'spoofutils.js'.  Furthermore,
     variables that you declare on  your HTML page will, in turn,
     overwrite any variables with the same name in this file.

     This means that you can at any time insert something like
     this on your HTML page:

     <SCRIPT>
     var DEBUG1 = "callnum = " + callnum;
     </SCRIPT>

     and this will overwrite anything you may have asigned to
     DEBUG1 in this file.

AUTHOR
     Donald MacLean          IGdonaldNOatREmacCAleansPIdotTAnetLS
                                      (Do what the capitals say.)
VERSION
     */registerVers(
     /*@(#) #(@)*/"spooflocal.js","vers 1.1.3.dmm - 2006 02 18");
     /* 

End of 'spooflocal.js' MANUAL
===============================================================*/

/*===============================================================
1. LOCAL VARIABLES
---------------------------------------------------------------*/
var DEMODIR       = "../SpooferDemo";
var DEFSUBJECT    = "DMMACL:";
var SPOOFLINKIMG  =  "env.png";
var SPOOFMASTERID = "author";
var SPOOFMASTER   = 
    "tensnaelcamdla";
var MYID   = "author";
var ME     = "Donald";
var MYSUBJ = "DMMACL:";
var MYADDR = 
    "tensnaelcamdla";
/*=============================================================*/


/*===============================================================
2. DEBUGGING VARIALBLES
   Legal values of DEBUG_ON are 'true' or 'false'. NB NO QUOTES!
---------------------------------------------------------------*/
//var DEBUG_ON = true; 
var DEBUG_ON = false;

var DEBUG1   = "Hullo, World!";
var DEBUG2   = "unset";
var DEBUG3   = "unset";
var DEBUG4   = "unset";
var DEBUG5   = "set in 'spooflocal.js";
/*=============================================================*/




