/* author: Steve Zalmstra - sPz consulting */
/* Creation date: 9/1/2003 */

/* function to go back passed in number of pages */
function goBack(numBack) {
	var x = 1
	while (x <= numBack)
	{
		++x;
		history.back()
	}
}


/* Pass in parms so spiders can't see e-mail address */
function nospamemail(user,site,subj,cont) {
	return('<a href="mailto:' + user + '@' + site + '?subject=' + subj + '">' + cont + '</a>');
}


/* Javascript code to create retrieve the date of the current file */
/* available at http://www.crays.com/jsc */

function GetMonth(intMonth){
	var MonthArray = new Array("Jan", "Feb", "Mar","Apr", "May", "Jun","Jul", "Aug", "Sep","Oct", "Nov", "Dec") 
	return MonthArray[intMonth]                  
}

function fmtDate(modDate){
	var modMonth = modDate.getMonth()
	var modYear = modDate.getYear()
	if(modYear<1000) modYear+=1900
	var fmtDate = modDate.getDate(modDate.getMonth())
	var modMin = modDate.getMinutes()
	var c1 = ":"
	if(modMin<10) c1+= "0"
	var modSec = modDate.getSeconds()
	var c2 = ":"
	if(modSec<10) c2+= "0"

	fmtDate += "-" + GetMonth(modMonth)  +  "-" + modYear + " " + modDate.getHours() + c1 + modMin + c2 + modSec
	return fmtDate
}	
			

function cr(site,company){
	document.write('Copyright © 2003, company - All rights reserved<br />Designed and maintained by: <a href=\"http://www.spzconsulting.com\" target=\"_blank\">sPz Consulting, LLC</a><br /> E-mail our ');
	document.write(nospamemail ("webmaster",site,company + " Webmaster Query","Webmaster"));
	document.write(" with your comments and questions.<br />");
	document.write("cDate = new Date(document.lastModified);");
	document.write("Last updated: " + fmtDate(cDate));
}

