
<!--
/*
  author: ARRPEE NET 
*/

/*  
  Display the date the file was created or last modified,
  display as text, e.g. "JULY 4 1776"
*/
function showDateModified() {
	var dateModified = document.lastModified
	var dateFound = Date.parse(dateModified)
 	if(dateFound == 0) // unlikely file date will be missing; display message if it is 
		{ document.write("Last Update Not Known")
	} else { // declare and define Date objects then display file date   
	// declare array to define month names from integer returned by getMonth() function
	var month=new Array(12)
	month[0]="January"
	month[1]="February"
	month[2]="March"
	month[3]="April"
	month[4]="May"
	month[5]="June"
	month[6]="July"
	month[7]="August"
	month[8]="September"
	month[9]="October"
	month[10]="November"
	month[11]="December"
	
	document.write("Last Update or Re-inspection: ")
	var modMonth=new Date(dateModified)	
	document.write(month[modMonth.getMonth()])
	var modDate = new Date(dateModified).getDate()
	document.write(' ' + modDate + ' ')
	var modYear = new Date(dateModified).getFullYear()
	document.write(modYear)
	}
}

/*
    Function colorRows()
    Alternate background color of rows. Apply CSS class name 'rowTint'
    to even numbered rows and class name 'altRowTint' to ohter rows.
    Hide java script warning message by channging element text color
    to element background color if java script is enabled.
*/
window.onload = colorRows;
function colorRows() {
  var myTR = document.getElementsByTagName('tr');
  for (var i=0;i<myTR.length;i++) {
    if (i%2) {
      myTR[i].className = 'rowTint';
    } else {
        myTR[i].className = 'altRowTint';            
        }
    }
    // Hide text
    var elem = document.getElementById("para2");
    elem.className='hide';
  }
  
  
/*
    Function getElementByagName Counts and prints number of members
    DOM shows a table header as <tr><th>....</th></tr>
    x is count of all row tags table header tags
    y is count of table header tags
    the menu bar has 2 row tags
    member rows = total rows - table headers - menu bar rows
 */
var x=document.getElementsByTagName("tr"); //global
var y=document.getElementsByTagName("th"); //global
function getElements() // SUBTRACT SKs manually
  {
  sk=1
  count = (x.length - y.length - 3 - sk);
  document.write("Associated Members: " + count);
  }

