// Javascript common to all pages - usually in header or footervar locationStr = self.location.href.toLowerCase();//alert('self.location = ' + locationStr);var pageTypeStr = locationStr.substring(0,4);//alert('pageTypeStr = ' + pageTypeStr);// To change class of specified id. Both params are strings function classChange( id, newclass )  {    element = document.getElementById(id);    if(element)      element.className = newclass ;  }function makeArray() {	 for (i = 0; i<makeArray.arguments.length; i++)		  this[i + 1] = makeArray.arguments[i];}function formatDate(theDate) {//	document.write('<BR><BR><BR>' + "Running formatDate on: " + theDate + '<BR>');	var day  = theDate.getDate();//	document.write("day = " + day + '<BR>');	var month = theDate.getMonth() + 1;//	document.write("month = " + month + '<BR>');	var yy = theDate.getYear();//	document.write("yy = " + yy + '<BR>');	var year = (yy < 1000) ? yy + 1900 : yy;//	document.write("year = " + year + '<BR>');	return day + "/" + month + "/" + year}var months = new makeArray('January','February','March',	'April','May','June','July','August','September',	'October','November','December');var last = document.lastModified;var lastmoddate = new Date(last);var todaydate = new Date();function PopupPic(sPicURL){	// looks at URL of file. If it end in *_small.??? then will open another window 	// and try to load a file with same name, but minus the _small part.	// alert("Input string = " + sPicURL);	var newStr = "";    var tmp1 = sPicURL.substring(sPicURL.length-10,sPicURL.length-4);    if (tmp1 == "_small")    	{newStr = sPicURL.substring(0,sPicURL.length-10)+ sPicURL.substring(sPicURL.length-4,sPicURL.length)}    else    	{newStr = sPicURL};	//alert("Output string = " + newStr);	  popupWin=window.open("./popup.htm?"+newStr, "popupWin", 	  "resizable=1,scrollbars=0,HEIGHT=200,WIDTH=200");	}