// *****************************************
// Funeral Scheduling Plus 
// Variable Assignments
// 
// Created for Rodriguez Funeral Home by 
//   Jay Grubb dba Grubb Computer Services (GCS)
//   December 2009 
// 
// File Created: 08-30-2010 04:39:20 PM
// 
// *****************************************

// **************** 
// Declare Arrays
// **************** 
aDeceased = new Array() ;
aService1 = new Array() ;
aService2 = new Array() ;
aService3 = new Array() ;
aService4 = new Array() ;

// **************** 
// Assign Global Variables
// **************** 
var nMaxRec = 7 ;
var stContactNumber = "<b>(276) 945-2154</b> or <b>(276) 326-1105</b>, or email us at <A href='mailto:info@RodriguezFuneral.com'>info@RodriguezFuneral.com</A>." ;
var stContactName = "<b>(276) 945-2154</b> or <b>(276) 326-1105</b>, or email us at <A style='text-decoration:underline;' name='mailto'>info@RodriguezFuneral.com</A>." ;

// **************** 
// Funeral Record Variables
// **************** 
// Fields: CountOrder, Name, Date, Servicing Funeral Home, Misc, Date of Passing
fldID = 0 ;
fldName = 1 ;
fldDate = 2 ;
fldFuneralHome = 3 ; 
fldFuneralMisc = 4 ; 
fldPassing = 5 ; 

aDeceased[0] = new Array("dameronpatricialk082710","Dameron, Patricia K","Passed away Aug 27, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Aug 27, 2010") ;
aDeceased[1] = new Array("brownrobertc082510","Brown, Robert Cag","Passed away Aug 25, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Aug 25, 2010") ;
aDeceased[2] = new Array("slussbettyj082410","Sluss, Betty J","Passed away Aug 24, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Aug 24, 2010") ;
aDeceased[3] = new Array("fowlerloisj072610","Fowler, Lois J","Passed away Jul 26, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Jul 26, 2010") ;
aDeceased[4] = new Array("neiceswanstonh071910","Neice, Swanston Harvey","Passed away Jul 19, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Jul 19, 2010") ;
aDeceased[5] = new Array("whiterobyr071410","White, Roby Ray","Passed away Jul 14, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Jul 14, 2010") ;
aDeceased[6] = new Array("riderthomasg070410","Rider, Jr., Thomas Grat","Passed away Jul 4, 2010","Serviced by Rodriguez Pocahontas Funeral Home, Pocahantas, VA., (276) 945-2154","","Jul 04, 2010") ;

// **************** 
// Funeral Array Indexes 
// **************** 
// Order by Date Index
aDateOrder = Array(0,1,2,3,4,5,6,0) ;

// Order by Name Index
aNameOrder = Array(1,0,3,4,6,2,5,0) ;

// Obituary Defined Key 
aObituary = Array(-1,-1,-1,-1,-1,-1,-1,0) ;

// Date of last service
aDateOfService= Array("10/26/2010","10/27/2010","10/26/2010","9/29/2010","9/20/2010","9/16/2010","9/6/2010","1/1/1900") ;

// **************** 
// Services Index
// **************** 
// True if Array aService1 has a value for this funeralID
aIsService1 = Array(0,0,0,0,0,0,0,0) ; 

// True if Array aService2 has a value for this funeralID
aIsService2 = Array(0,-1,-1,-1,-1,-1,-1,0) ; 

// True if Array aService3 has a value for this funeralID
aIsService3 = Array(0,-1,-1,-1,-1,-1,-1,0) ; 

// True if Array aService4 has a value for this funeralID
aIsService4 = Array(0,-1,-1,-1,-1,-1,-1,0) ; 

// **************** 
// Services Arrays 
// **************** 
// Fields: CountOrder, ServiceActive, ServiceFld, ServiceName, ServiceDateTime, Location, Address, Misc
fldOrder = 0 ;
fldActive = 1 ;
fldType = 2 ;
fldServiceName = 3 ;
fldServiceDateTime = 4 ;
fldLocation = 5 ;
fldAddress = 6 ;
fldServiceMisc = 7 ;

// **************** 
// Service 1
// **************** 
aService1[0] = new Array("0","Inactive","2","ERROR","1/1/1900","","","") ;
aService1[1] = new Array("1","Inactive","4","ERROR","1/1/1900","","","") ;
aService1[2] = new Array("2","Inactive","4","ERROR","1/1/1900","","","") ;
aService1[3] = new Array("3","Inactive","4","ERROR","1/1/1900","","","") ;
aService1[4] = new Array("4","Inactive","4","ERROR","1/1/1900","","","") ;
aService1[5] = new Array("5","Inactive","4","ERROR","1/1/1900","","","") ;
aService1[6] = new Array("6","Inactive","4","ERROR","1/1/1900","","","") ;

// **************** 
// Service 2
// **************** 
aService2[0] = new Array("0","Inactive","4","ERROR","1/1/1900","","","") ;
aService2[1] = new Array("1","Active","2","Viewing","Sat, Aug 28, 2010 at 12:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService2[2] = new Array("2","Active","2","Viewing","Thu, Aug 26, 2010 at 6:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService2[3] = new Array("3","Active","2","Viewing","Fri, Jul 30, 2010 at 6:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService2[4] = new Array("4","Active","2","Viewing","Wed, Jul 21, 2010 at 6:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService2[5] = new Array("5","Active","2","Viewing","Sun, Jul 18, 2010 at 1:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService2[6] = new Array("6","Active","2","Viewing","Thu, Jul 8, 2010 at 11:00 AM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;

// **************** 
// Service 3
// **************** 
aService3[0] = new Array("0","Inactive","1","ERROR","1/1/1900","","","") ;
aService3[1] = new Array("1","Active","1","Funeral","Sat, Aug 28, 2010 at 1:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService3[2] = new Array("2","Active","1","Funeral","Fri, Aug 27, 2010 at 11:00 AM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService3[3] = new Array("3","Active","1","Funeral","Sat, Jul 31, 2010 at 1:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService3[4] = new Array("4","Active","1","Funeral","Thu, Jul 22, 2010 at 11:00 AM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService3[5] = new Array("5","Active","1","Funeral","Sun, Jul 18, 2010 at 2:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;
aService3[6] = new Array("6","Active","1","Funeral","Thu, Jul 8, 2010 at 1:00 PM","Rodriguez Funeral Home","68 Water Street<br>Pocahontas, Va","") ;

// **************** 
// Service 4
// **************** 
aService4[0] = new Array("0","Inactive","8","ERROR","1/1/1900","","","") ;
aService4[1] = new Array("1","Active","8","Graveside","Sat, Aug 28, 2010","Grandview Cemetery","Bluefield, Virginia","") ;
aService4[2] = new Array("2","Active","8","Graveside","Fri, Aug 27, 2010","Maple Hill Cemetery","Bluefield, VA","") ;
aService4[3] = new Array("3","Active","8","Graveside","Sat, Jul 31, 2010","Woodlawn Memorial Park Cemetery","Bluewell, West Virginia","") ;
aService4[4] = new Array("4","Active","8","Graveside","Thu, Jul 22, 2010","Grandview Memory Gardens","Bluefield, Virginia","") ;
aService4[5] = new Array("5","Active","8","Graveside","Sun, Jul 18, 2010","Pocahontas Cemetary","Pocahontas, VA","") ;
aService4[6] = new Array("6","Active","8","Graveside","Thu, Jul 8, 2010","Grandview Cemetery","Bluefield, Virginia","") ;

//
// Funeral Scheduling Data. End. 
//
