//
//  Display Date Modified
//
function lastMod() {
	var x = new Date (document.lastModified);
	Modif = new Date(x.toGMTString());
	Year = takeYear(Modif);
	Month = Modif.getMonth();
	Month += 1;
	Day = Modif.getDate();
	var towrite = 'updated ' + Month + '/' + Day + '/' + Year;
	return towrite;
}
function takeYear(theDate) {
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}




// =======================================================
//   Email Spider Stumper v3.1
//    last modified 13 Oct 2005
//    Developed by Scott Clark & Kevin Duhe
//    The Source is available at http://www.clarksco.com/blog/
//    Copyright 2005 Clark Consulting
// =======================================================
//   MODIFIED for flexible domains
//      Robyn Alexander  2007-06-10
// ======================================================= 

// There are three arguments being passed into this array.
//   "theName"    =  username (or the portion of the email address prior to the @.
//   "theDomain"  =  domain   (not including .com,.net, etc)
//   "theCom"     =  com,net, edu    (defauts to com if left blank)
//   "theSubject" =  subjec for email.   Can be blank if you don't want to use this feature.
//   "theLink"    = text for the link such as "Jane Doe"  (defaultsto email address if blank)

function stumpIt(theName,theDomain,theCom,theSubject,theLink) {
	if	( theCom == "" )
	{	
		theCom = "com";
	}
	var theEmail = theName+"@"+theDomain+"."+theCom;
	var theEmailSubj = theName+"@"+theDomain+"."+theCom+"?subject="+theSubject;
	if	( theName == "" || theDomain == "" )
	{
		theName = "ERROR";
		theLink = "ERROR";
		myEmail = theName;
		myLink = theLink;
	}
	else
	{
		if (theLink == "" && theSubject == "")
		{
			myLink = theEmail;
			myEmail = theEmail;
		}
		else if  ( theLink == "" && theSubject != "")
		{
			myLink = theEmail;
			myEmail = theEmailSubj;
		}
		else if  ( theLink != ""  &&  theSubject != "" )
		{
			myLink = theLink;
			myEmail = theEmailSubj;
		}
		else if  ( theLink != ""  &&  theSubject == "" )
		{
			myLink = theLink;
			myEmail = theEmail;
		}
	}
	document.write('<a href="mailto:' + myEmail + '" title="' + theEmail + '">' + myLink + '</a>');
}
