<!-- cloaking device on
function OutOfOffice()
{
//alert("Start function here")

// This function checks the current date against an array of dates.
// If the date is matched, it returns bolean true, else false

// get the current date from client system in the format 1/26/2001

// Create date object
now = new Date

// Get the current year value
YearNow= now.getYear()
// some Netscape versions return years since 1900, so...
if (YearNow < 2000) YearNow = YearNow + 1900  
				

//Now, create date in the format Month/day/year 7/1/2003
NowDate = (now.getMonth()+1)+"/"+now.getDate()+"/"+ YearNow


// establish the array of dates, out of office dates for example 
OOOdates = new Array(
// OK to edit from this point...remember all dates must end with a comma


// 2012

// Lake Meade
"1/18/2012","1/19/2012","1/20/2012",

// Branson
"2/6/2012","2/7/2012","2/8/2012","2/9/2012",

// Palm Springs
"2/15/2012","2/16/2012",

// Death Valley
"3/6/2012","3/7/2012","3/8/2012",

// Pacific Cruise
"4/28/2012","4/29/2012","4/30/2012","5/1/2012","5/2/2012","5/3/2012","5/4/2012","5/5/2012",

// Tuacahn
"6/13/2012","6/14/2012","6/15/2012"

// Yosemite
"7/16/2012","7/17/2012","7/18/2012","7/19/2012",

// Sedona
"9/18/2012","9/19/2012","9/20/2012",

// Australia NZ
"10/15/2012","10/16/2012","10/17/2012","10/18/2012","10/19/2012","10/20/2012","10/21/2012","10/22/2012",
"10/23/2012","10/24/2012","10/25/2012","10/26/2012","10/27/2012","10/28/2012","10/29/2012",

// Thanks Cal
"11/19/2012","11/20/2012","11/21/2012","11/20/2012","11/21/2012",

// SC Christmas
"12/149/2012","12/15/2012","12/16/2012",
// 2013

// Mex Riv Cruise
"1/6/2013","1/7/2013","1/8/2013","1/9/2013","1/10/2013","1/11/2013","1/12/2013","1/13/2013",

// Branson
"2/4/2013","2/5/2013","2/5/2013","2/7/2013",

// San Diego
"2/18/2013","2/19/2013","2/20/2013","2/21/2013",

// Palm Springs
"3/6/2013","3/7/2013",

// Cal Coast
"3/18/2013","3/19/2013","3/20/2013","3/21/2013","3/22/2013","3/23/2013",

// Stop editing ... please do not edit the next line.  It functions as an array terminator record.
"end of dates"
) // end of date array.  

// Check NowDate against the array of dates to see if there is a match
n=0

ReturnValue = false  // Boolean false value

while (OOOdates[n] != "end of dates")
{
	if (NowDate==OOOdates[n])		
	{			
		// ReturnValue = true
		ReturnValue = true  // Boolean true value
		break
	}	
++n
}  
//end of while 

return ReturnValue

} 
//end of function
//   cloaking device off -->
