// This file contains intellectual property and artistic creations 
// by Dennis Sandow and is copyright 2000-2010 by the author. 
// For use only on websites maintained by Dennis Sandow, or with
// specific permission.  Do not remove this notice.

var thisYear=2012;

var DaNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday', 'Friday','Saturday'); 
var MoNames = new Array('','January','February','March','April','May','June', 'July','August','September','October','November','December');
var MoLengths = new Array( '',31,28,31,30,31,30,31,31,30,31,30,31);
if (((thisYear % 4)==0) && ((thisYear % 100)!=0) || ((thisYear % 400)==0)) { MoLengths[2]=29 ; };

var cur = new Date(); 

function RegisterEmail3(rAddr,rTitle){
  NewUrl=NxPg('mailer.htm');
  NewWd(NewUrl,'mailerRegister');
  Tokens=new Array(); 
  WPop.SendTo = rAddr;
  WPop.SendPagename = '';
  WPop.SendRedNote = '';
  WPop.noHtml = 'KILLHTML';
  WPop.deMinimus = 'KILLEXTRAS';
  cleanTitle=rTitle.replace(/<b>/g,'' ).replace(/<\/b>/g,'');
  switch(rAddr){
    case 'friends@longhilllibrary.org': 
    case 'director@longhilllibrary.org':
    case 'adult@longhilllibrary.org':
    case 'teen@longhilllibrary.org':
         WPop.SendSubj = 'Please Register me for '+cleanTitle;
         WPop.Body = "Number attending:&nbsp;\n\nPhone:&nbsp;" ;
         break; 
    case 'children@longhilllibrary.org':
         WPop.SendSubj = 'Please Register my child for '+cleanTitle;
         WPop.Body = "Child's Name:&nbsp;\n\nPhone:&nbsp;" ;
         break; 
    case 'recreation@longhillnj.info':
         WPop.SendSubj = 'Please Register me for '+cleanTitle;
         WPop.Body = "\n\nPhone:&nbsp;\n\nAre you willing to be an organizer (captain, scheduler, etc.):&nbsp;"
         WPop.SendFootNote = "Please mail your check to<br>Recreation Department<br>Long Hill Township<br>915 Valley Road<br>Gillette, NJ 07932<br><br>and write the event name on the check." ;
//         WPop.noSQ = 'nosquelch';
         break; 
    default: 
         WPop.SendTo = 'webmaster@dennissandow.com';
         WPop.SendSubj = 'Unknown for '+cleanTitle;
         WPop.Body = "Something is wrong. Please describe what you were trying to do, and submit this message to the Webmaster so he can fix it. {"+rAddr+")\n\nComments:&nbsp;" ;
         break; 
  };
};

