/* Tickler.js
This is the file that provides seasonal messages to several screens based on message date.
Revised 1/22/98 to allow multiple events on the same day.  Revised test for multiple 11/11/99.*/
<!--
function print() {
	 document.write("Big Date: " + this.bdate
	  + "<br>gt1a: " + this.gt1a
	  + "<br>gt1b: " + this.gt1b
	  + "<br>eve: " + this.eve
	  + "<br>eqday: " + this.eqday + "<p>");
	}

function printa() {
	var message="<P align=center><font color=brown size=5>"+else_msg
	if (daysLeft >1){ message= "<p align=center><B>"+this.gt1a+daysLeft+this.gt1b+" on " +showdate(this.bdate) +"</B>"}
	if (daysLeft==1){message = "<p align=center>"+this.eve+"</B>"}
	if (daysLeft==0){message = "<p align=center>"+this.eqday+"</B>"}
	document.write(message);
	}

function printb() {
	var message="<P align=center><font color=brown size=5>"+else_msg
	if (daysLeftNext >1){ message= "<B>"+this.gt1a+daysLeftNext+this.gt1b+" on " +showdate(this.bdate) +"</B>"}
	if (daysLeftNext==1){message = this.eve+ " on " +  showdate(this.bdate) +"</B>"}
	if (daysLeftNext==0){message = this.eqday+"</B>"}
	document.write(message);
	}

function event(bdate,gt1a,gt1b,eve,eqday) { 
	this.bdate = new Date(bdate);
 	this.gt1a = gt1a;
 	this.gt1b = gt1b;
	this.eve = eve;
	this.eqday = eqday;
 	this.print = print;
	this.printa = printa;
	this.printb = printb;
	}

function showdate(mydate) {
	thedate = mydate.getMonth()+1;
	thedate = thedate + "/" + mydate.getDate()+"/"+mydate.getFullYear();
	return thedate;
	}


//Construct a date variable for 0000 hours today
		var now= new Date();		// Current date & time
		var year = now.getYear()
		if(year < 1900)
		{
			year = year + 1900;
		}
		var month = now.getMonth()
		var day = now.getDate()
		var today= new Date(year,month,day)

// set dotest to 1 to substitute the testdate for today. set to 0 for normal operation
var testdate=new Date("9/25/2003");
var dotest= 0;
if(dotest==1){today = testdate;}

// Event data entry starts below
//Do not overwrite last event.  It is my stopper.
// If you add rather than change events, adjust the num_events value below
//Recommend that first ten event numbers be reserved for one-shot events
//Recommend that Events 10 thru -? be repeating yearly events

var num_events = 50;

// Go for it
//insert below here
var library = new Object();
library[0] = new event(
	"10/08/2004",
	"You have ",
	" days until the Fall Workshop (10/8-10/9) Phase IV-VI w/ Lillefields.<br>Honeywell Center - Wabash, Indiana ",
	"The Fall Workshop  in Wabash, Indiana starts tomorrow.</A>",
	"The Fall Workshop  in Wabash, Indiana starts today."
	);
library[1] = new event(
	"8/11/2006",
	"You have ",
	" days until the R/D Clinic - Indiana Callers Association - Phase IV - V<br>Exhibitiob Center - Noblesville, Indiana",
	"Tomorrow is the R/D Clinic - Indiana Callers Association",
	"Today is the R/D Clinic - Indiana Callers Association"
	);
library[2] = new event(
	"12/2/2006",
	"You have ",
	" days until the Dec 2nd & 3rd Florida Round Dance Council Phase IV-V Clinic Weekend - Stardust Dance Center - Plant City, Florida",
	"Tomorrow is the Dec 2nd & 3rd Florida Round Dance Council Phase IV-V Clinic Weekend - Stardust Dance Center - Plant City, Florida",
	"Today is the first day of the Dec 2nd & 3rd Florida Round Dance Council Phase IV-V Clinic Weekend - Stardust Dance Center - Plant City, Florida"
	);
library[3] = new event(
	"3/31/2007",
	"You have ",
     " days until Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida",
	"Tomorrow is Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida",
	"Today is Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida"
	);
library[4] = new event(
	"6/29/2007",
	"You have ",
	" days until 4th July W/E - Plus Level w/Red Bates - Rocky's Recreation Area - Boonville, New York (June 29 - July 2)",
	"Tomorrow is 4th July Weekend (June 29 - July 2). Plus level with Red Bates<br>Rocky's Recreation Area, Boonesville, New York.",
	"4th July Weekend (JJune 29 - July 2). Plus level with Red Bates<br>Rocky's Recreation Area, Boonesville, New York starts today"
	);
library[5] = new event(
	"10/19/2007",
	"You have ",
	" days until the Red River Rounders Halloween Ball - Phase IV-V-VI - Civic Center - Shreveport/Bossier City, Louisiana",
	"Tomorrow is the first day of the Red River Rounders Halloween Ball - Phase IV-V-VI - Civic Center - Bossier City, Louisiana",
	"Today is the first day of the Red River Rounders Halloween Ball - Phase IV-V-VI - Civic Center - Bossier City, Louisiana"
	);
library[6] = new event(
	"11/16/2007",
	"NESFARDA - MS & Plus - Phase II-III - Resurection Catholic Church - Jacksonville, Florida (Nov 16-17) starts in ",
	" days",
	"NESFARDA - MS & Plus - Phase II-III - Resurection Catholic Church - Jacksonville, Florida (Nov 16-17) starts tomorrow.",
	"NESFARDA - MS & Plus - Phase II-III - Resurection Catholic Church - Jacksonville, Florida (Nov 16-17) starts today."
	);
library[7] = new event(
	"3/28/2008",
	"You have ",
	" days until Star Fest (8/19-8/24)- Phase IV-VI - View Point RV & Golf Resort -  Mesa, Az",
	"Star Fest starts tomorrow.",
	"Star Fest today."
	);

library[8] = new event( 
	"4/25/2008",
	"You have ",
	" days until the Texas Cotillion - (April 25-27) - Phase IV-V-VI <br> Dance Federation Building - Lubbock, Texas starting ",
	"Tomorrow is the start of the Texas Cotillion ",
	"Today you should be in Lubbock Texas for the start of the Texas Cotillion"
	);
library[9] = new event(
	"9/5/2008",
	"You have ",
	" days until the State Round Dance Festival - Phase IV-V-VI - Dance Center - Albuquerque, New Mexico.  Official Dance starts ",
	"The State Round Dance Festival - Phase IV-V-VI - Dance Center - Albuquerque, New Mexico starts tomorrow.",
	"Today is the start of the State Round Dance Festival - Phase IV-V-VI - Dance Center - Albuquerque, New Mexico"
	);
library[10] = new event(
	"9/08/2008",
	"Extravaganza of Rounds - Phase IV-VI - Red River Community House - Red River, New Mexico starts in ",
	"  days ",
	"Extravaganza of Rounds - Phase IV-VI - Red River Community House - Red River, New Mexico starts tomorrow.",
	"Extravaganza of Rounds - Phase IV-VI - Red River Community House - Red River, New Mexico starts today."
	);
library[11] = new event(
	"09/25/2008",
	"You have ",
	" days until the Myrtle Beach Ball - Phase II-III-IV-V - Ocean Dunes - Myrtle Beach, South Carolina ",
	"Myrtle Beach Ball - Phase II-III-IV-V - Ocean Dunes - Myrtle Beach, South Carolina starts tomorrow.",
	"Myrtle Beach Ball - Phase II-III-IV-V - Ocean Dunes - Myrtle Beach, South Carolina starts today."
	);
library[12] = new event(
	"10/17/2008",
	"Autumn Spectacular - Phase IV-V-VI - Heritage Elementary School - Woodburn, Oregon starts in ",
	" days.",
	"Autumn Spectacular - Phase IV-V-VI - Heritage Elementary School - Woodburn, Oregon starts tomorrow.",
	"Autumn Spectacular - Phase IV-V-VI - Heritage Elementary School - Woodburn, Oregon starts today."
	);
library[13] = new event(
	"1/17/2009",
	"You have ",
      " days until the Fabulous Four Weekend - Phase IV-VI - w/Moore & Read - Stardust Dance Center - Plant City, FL",
	"Tomorrow is the first day of the Fabulous Four Weekend - Phase IV-VI - w/Moore & Read - Stardust Dance Center - Plant City, FL",
	"Today is the first day of the Fabulous Four Weekend - Phase IV-VI - w/Moore & Read - Stardust Dance Center - Plant City, FL"
	);
library[14] = new event(
	"1/22/2009",
	"Roun-E-VousW/E Phase III-IV-V-VI - Bennington College - Bennington Vermont starts in ",
	" days.",
	"Tomorrow is the first day of Roun-E-VousW/E Phase III-IV-V-VI - Bennington College - Bennington Vermont",
	"Roun-E-VousW/E Phase III-IV-V-VI - Bennington College - Bennington Vermont starts today. "
	);
library[15] = new event(
	"3/28/2009",
	"You have ",
     " days until Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida",
	"Tomorrow is Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida",
	"Today is Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida"
	);
library[16] = new event(
	"4/28/2009",
	"You have ",
	" days until Spring Roundarama - phase V-VI with Rumble - Cherry Hill Park, College Park Maryland",
	"Spring Roundarama - phase V-VI with Rumble - Cherry Hill Park, College Park Maryland starts tomorrow.",
	"Spring Roundarama - phase V-VI with Rumble - Cherry Hill Park, College Park Maryland starts today."
	);
library[17] = new event(
	"5/8/2009",
	"You have ",
	" days until the start of the Silver Creek Festival (1/21 - 1/26) - Phase IV-V-VI w/Read - Grand Sierra Resort - Reno, Nevada",
	"Tomorrow is  the start of the Silver Creek Festival (1/21 - 1/26) - Phase IV-V-VI w/Read - Grand Sierra Resort - Reno, Nevada",
	"Today is the start of the Silver Creek Festival (1/21 - 1/26) - Phase IV-V-VI w/Read - Grand Sierra Resort - Reno, Nevada"
	);
library[18] = new event(
	"5/30/2009",
	"Heartland Classic - Phase IV-V-VI - Muskogee Dance Hall - Muskogee, Oklahoma (May 30-31) starts in  ",
	" days",
	"Heartland Classic - Phase IV-V-VI - Muskogee Dance Hall - Muskogee, Oklahoma (May 30-31) starts tomorrow.</A>",
	"Heartland Classic - Phase IV-V-VI - Muskogee Dance Hall - Muskogee, Oklahoma (May 30-31) starts today."
	);
library[19] = new event(
	"6/5/2009",
	"You have ",
	" days until the Western Ontario W/E - Phase III-V - John Paul Secondary School - London, Ontario Canada",
	"Tomorrow is the first day of the Western Ontario W/E - Phase III-V - John Paul Secondary School - London, Ontario Canada",
	"Today is the first day of the Western Ontario W/E - Phase III-V - John Paul Secondary School - London, Ontario Canada"
	);
library[20] = new event(
	"6/22/2009",
	"You have ",
	" days until the European Teachers Association 50th Anniversary - Clinics - June 22-28 Conference Center - Suhl, Germany",
	"Tomorrow is the first day of the European Teachers Association 50th Anniversary - Clinics - Conference Center - Suhl, Germany",
	"Today is the first day of the European Teachers Association 50th Anniversary - Clinics - Conference Center - Suhl, Germany"
	);
library[21] = new event(
	"7/4/2009",
	"European Round Dance Week - Phase V-VI - July 4-11 - Bodabaden Resort - Oland, Sweden starts in",
	" days",
	"European Round Dance Week - Phase V-VI - July 4-11 - Bodabaden Resort - Oland, Sweden starts tomorrow.",
	"European Round Dance Week - Phase V-VI - July 4-11 - Bodabaden Resort - Oland, Sweden starts today."
	);
library[22] = new event(
	"8/8/2009",
	"You have ",
	" days until the start of the Roundarama Institute - Phase IV-V-VI - August 8-13 - Shibata & Sheridan - Purdue University - W. Lafayette, Indiana ",
	"The Roundarama Institute - Phase IV-V-VI - Shibata & Sheridan - Purdue University - W. Lafayette, Indiana starts tomorrow.",
	"The Roundarama Institute - Phase IV-V-VI - Shibata & Sheridan - Purdue University - W. Lafayette, Indiana starts today. "
	);
library[23] = new event(
	"11/27/2009",
	"You have ",
	" days until the Harvest Holiday Festival (11/27 - 11/29) - Phase IV-V-VI<br>Hotel Market Center - Dallas, Texas.",
	"The Harvest Holiday Festival (11/28 - 11/30)  - Dallas, Texas - starts tomorrow.",
	"The Harvest Holiday Festival (11/28 - 11/30)  - Dallas, Texas - starts today "
	);
library[24] = new event(
	"12/12/2009",
	"You have ",
	" days until the Christmas Party & Super Saturday - Phase IV-V-VI - Stardust Dance Center - Plant City, Florida",
	"Tomorrow is the Christmas Party & Super Saturday - Phase IV-V-VI - Stardust Dance Center - Plant City, Florida",
	"Today is the Christmas Party & Super Saturday - Phase IV-V-VI - Stardust Dance Center - Plant City, Florida"
	);
library[25] = new event(
	"12/29/2009",
	"You have ",
	" days until the New Year's W/E w/Hurd (12/29 - 12/31) - Phase IV-VI - Stardust Dance Center - Plant City, Florida",
	"Tomorrow is the first day of the New Year's W/E w/Hurd - Phase IV-VI - Stardust Dance Center - Plant City, Florida",
	"Today is the first day of the New Year's W/E w/Hurd - Phase IV-VI - Stardust Dance Center - Plant City, Florida"
	);
library[26] = new event(
	"1/16/2010",
	"You have ",
	" days until Boot Camp - Jan 16-20 - focus is Phase IV-V Tango- Stardust Dance Center - Plant City Florida",
	"Winter Boot Camp - Jan 16-20 - focus Phase IV-V Tango- Stardust Dance Center - Plant City Florida starts tomorrow",
	"Winter Boot Camp - Jan 16-20 - Phase IV-V Tango - Stardust Dance Center - Plant City Florida starts today"
	);
library[27] = new event(
	"1/23/2010",
	"You have ",
	" days until Super Saturday - Phase V-VI - Stardust Dance Center - Plant City, Florida.",
	"Tomorrow is Super Saturday in Plant City",
	"Today is Super Saturday in Plant City"
	);
library[28] = new event(
	"2/5/2010",
	"Cactus Capers - Phase IV-V VI  - Feb 5,6,7 - Leisure World Recreation Hall - Mesa, Arizona starts in ",
	" days",
	"The Weekend of Rounds starts tomorrow.",
	"The Weekend of Rounds starts today."
	);
library[29] = new event(
	"4/17/2010",
	"You have ",
	" days to the Georgia R/D Teachers Association Day of Education  - Macon, Georgia ",
	"The Georgia R/D Teachers Association Day of Education  - Macon, Georgia starts tomorrow.",
	"The Georgia R/D Teachers Association Day of Education  - Macon, Georgia starts today."
	);
library[30] = new event(
	"4/18/2010",
	"You have ",
	" days until the Central Florida Day of Rounds w/Joanne & Ken Helton Eustis, Florida ",
	"Tomorrow is the first day of the Central Florida Day of Rounds w/Joanne & Ken Helton Eustis, Florida",
	"Today is the first day of the Central Florida Day of Rounds w/Joanne & Ken Helton Eustis, Florida"
	);
library[31] = new event(
	"6/20/2010",
	"You have ",
	" days until the Roundalab Annual Convention [June 20-23]– Louisville, Ky. ",
	"Tomorrow is the first day of the Roundalab Annual Convention – Louisville, Ky. ",
	"Today is the the first day of the Roundalab Annual Convention – Louisville, Ky. "
	);
library[32] = new event(
	"7/7/2010",
	"You have ",
	" days until the ICBDA Convention [July 7 - 10]– San Antonio, Texas ",
	"Tomorrow is the first day of the ICBDA Convention [July 7 - 10]– San Antonio, Texas",
	"The ICBDA Convention [July 7 - 10]– San Antonio, Texas starts today. "
	);
library[33] = new event(
	"7/15/2010",
	"The STAR SPANGLED BANNER FESTIVAL [July 15-18] starts in  ",
	" days ",
	"The STAR SPANGLED BANNER FESTIVAL starts tomorrow.",
	"The STAR SPANGLED BANNER FESTIVAL starts today."
	);
library[34] = new event(
	"7/25/2010",
	"The Annual MICHIGAN CHILI PEPPER R/D WEEKEND [July 23-25], Milan, MIch starts in  ",
	 "days",
	"The Annual MICHIGAN CHILI PEPPER R/D WEEKEND, Milan, MIch starts tomorrow.",
	"The Annual MICHIGAN CHILI PEPPER R/D WEEKEND, Milan, MIch starts tonight."
	);
library[35] = new event(
	"8/27/2010",
	"You have ",
	" days until the 7th Annual Dance Improvement Clinic [August 28-28] - Kennesaw, Ga .",
	"Tomorrow is the start of the 7th Annual Dance Improvement Clinic [August 28-28] - Kennesaw, Ga.",
	"The 7th Annual Dance Improvement Clinic [August 28-28] - Kennesaw, Ga. starts today."
	);
library[36] = new event(
	"12/28/2010",
	"You have ",
	" days until HOLIDAY ROUND DANCE BALL,Columbia, S.C. Blackford/Collipi/Pierce ",
	"Tomorrow is the first day of HOLIDAY ROUND DANCE BALL,Columbia, S.C. Blackford/Collipi/Pierce ",
	"Today is the first day of HOLIDAY ROUND DANCE BALL,Columbia, S.C. Blackford/Collipi/Pierce"
	);
library[37] = new event(
	"3/18/2011",
	"Bakersfield Annual Festival, Bakersfield California, starts in  ",
	" days",
	"Bakersfield Annual Festival starts tomorrow.",
	"Bakersfield Annual Festival starts tomorrow starts tonight."
	);
library[38] = new event(
	"4/1/2011",
	"St. Louis Annual Festival, St. Louis MO. starts in  ",
	 "days",
	"St. Louis Annual Festival starts tomorrow night",
	"St. Louis Annual Festival starts  tonight."
	);
library[39] = new event(
	"7/4/2011",
	"You have ",
	" days until Pre-ICBDA W/E - Phase IV-V-VI - July 17-19 - Lodge of the Ozarks Ent.Complex - Branson, Missouri.",
	"Pre-ICBDA W/E - Phase IV-V-VI - Lodge of the Ozarks Ent.Complex - Branson, Missouri starts tomorrow.",
	" Pre-ICBDA W/E - Phase IV-V-VI - Lodge of the Ozarks Ent.Complex - Branson, Missouri starts today."
	);
library[40] = new event(
	"1/13/2012",
	"A 'Black Tie' Affair  -  Phase IV - VI - Tower Point Resort - Mesa, Arizona starts in ",
	" days.   ",
	"A 'Black Tie' Affair  -  Phase IV - VI - Tower Point Resort - Mesa, Arizona starts tomorrow night.",
	"A 'Black Tie' Affair  -  Phase IV - VI - Tower Point Resort - Mesa, Arizona starts tonight."
	);
library[41] = new event(
	"2/18/2012",
	"Senior Prom starts in ",
	" days.",
	"Senior Prom starts tomorrow. ",
	"Senior Prom starts today."
	);
library[42] = new event(
	"3/8/2012",
	"Annual Spring Round Dance Weekend, Anchorage, Alaska (March 8 - 11) starts in  ",
	" days .",
	"Annual Spring Round Dance Weekend, Anchorage, Alaska (March 8 - 11) starts tomorrow.",
	"Annual Spring Round Dance Weekend, Anchorage, Alaska (March 8 - 11) starts today."
	);
library[43] = new event(
	"3/15/2012",
	"The WASCA Festival - Phase III-VI w/Collipi & Rumble - Hyatt Regency - Reston, Virginia starts in ",
	" days ",
	"The WASCA Festival - Phase III-VI w/Collipi & Rumble - Hyatt Regency - Reston, Virginia starts tomorrow.",
	" The WASCA Festival - Phase III-VI w/Collipi & Rumble - Hyatt Regency - Reston, Virginia starts today."
	);
library[44] = new event(
	"3/31/2012",
	"You have ",
     " days until Annual R/D Weeekend, Pensacola, Florida",
	"Tomorrow is Annual R/D Weeekend, Pensacola, Florida",
	"Today is Annual R/D Weeekend, Pensacola, Florida"
	);
library[45] = new event(
	"4/06/2012",
	"You have ",
	" days until the Texas R/D Teachers Sponsored Roundalab Mini-Lab -  Waco, Texas",
	"Tomorrow is the Texas R/D Teachers Sponsored Roundalab Mini-Lab -  Waco, Texas",
	"Today is the Texas R/D Teachers Sponsored Roundalab Mini-Lab -  Waco, Texas"
	);
library[46] = new event(
	"4/12/2012",
	"You have ",
	" days until Dancing at the Gorge - Pipesteam, West Virginia ",
	"Dancing at the Gorge - Pipesteam, West Virginia starts tomorrow.</A>",
	"Dancing at the Gorge - Pipesteam, West Virginia starts today."
	);
library[47] = new event(
	"5/20/2012",
	"You have ",
	" days until Accent on Rounds [May 20-24] – Fontana Dam, North Carolina ",
	"Tomorrow is the first day of Accent on Rounds – Fontana Dam, North Carolina  ",
	"Today is the first day of Accent on Rounds – Fontana Dam, North Carolina  "
	);
library[48] = new event(
	"5/26/2012",
	"Florida State Concention - Lakeland Florida  - starts in ",
	" days. ",
	"Florida State Concention - Lakeland Florida starts tomorrow .",
	"Florida State Concention - Lakeland Florida starts today."
	);
library[49] = new event(
	"7/4/2012",
	"You have ",
	" days to the ICBDA (URDC) Convention - Phase IV-V-VI - Greensboro, NC ",
	"The ICBDA (URDC) Convention - Phase IV-V-VI - Greensboro, NC starts tomorrow",
	"The ICBDA (URDC) Convention - Phase IV-V-VI - Greensboro, NC starts today"
	);
library[99] = new event(
	"1/1/2013",
	"You have run out of events in your list.  By the way, there are ",
	" days until the year 2013.",
	"Its New Years Eve",
	"Happy New Year"
	);

//Insert above here
library.length = 6;

varholder = 99
for (var eventNum = 0; eventNum <num_events; ++eventNum) {
	if(varholder==99 && library[eventNum].bdate.getTime() - today.getTime() >= 0){
		varholder=eventNum;}
	if(varholder < 99 && library[eventNum].bdate - library[varholder].bdate < 0 && 		library[eventNum].bdate.getTime() - today.getTime() >= 0){
		varholder=eventNum;}
//	document.write(eventNum +", " + varholder +"<br>");
	}

varholdernext = 99
for (var eventNum = 0; eventNum <num_events; ++eventNum) {
	if(varholdernext==99 && library[eventNum].bdate.getTime() - library[varholder].bdate.getTime() >= 0.5){
		varholdernext=eventNum;}
	if(varholdernext < 99 && library[eventNum].bdate - library[varholder].bdate > 0.5 && 		library[varholdernext].bdate.getTime() - library[eventNum].bdate.getTime() > 0.5){
		varholdernext=eventNum;}
//	document.write(eventNum +", " + varholdernext +", " + varholder + "<br>");
	}


var else_msg="Uhhh...something!"
for (var eventNum = 0; eventNum <num_events; ++eventNum) {

	// equality test below did not work for unknown reasons. Switched to abs( delta ) test.
	// if(library[eventNum].bdate == library[varholder].bdate) {

	if(Math.abs(library[varholder].bdate - library[eventNum].bdate)<2) {
		//Create constant to represent the number of milliseconds per day
		msPerDay = 24 * 60 * 60 * 1000 ; 

		//Subtract today from targetdate
		//Difference will be in milliseconds so we divide by milliseconds per day 
		daysLeft = Math.round((library[varholder].bdate.getTime() - today.getTime()) / msPerDay);
		//daysLeftNext = Math.round((library[varholdernext].bdate.getTime() - today.getTime()) / msPerDay);
		//document.write(eventNum);
		library[eventNum].printa();
	}
}
document.write("<hr>");
for (var eventNum = 0; eventNum <num_events; ++eventNum) {

	if(Math.abs(library[varholdernext].bdate - library[eventNum].bdate)<2) {
		//Create constant to represent the number of milliseconds per day
		msPerDay = 24 * 60 * 60 * 1000 ; 

		//Subtract today from targetdate
		//Difference will be in milliseconds so we divide by milliseconds per day 
		daysLeftNext = Math.round((library[varholdernext].bdate.getTime() - today.getTime()) / msPerDay);
		library[eventNum].printb();
	}
}
//document.write("<hr>");

// -->


