// centralized JavaScript code

function unfocus()
{
void blur();
}


function thisyear()
{
var today = new Date();
var year = today.getFullYear();
return year;
}



/* The following function returns either the current year or 
a range of years where the first is an input argument and the second is the current year.
For example: 2009 or 2008-2009.
*/

function getdates(first) 
{
var r = 1;
if (arguments.length == 0)
	{ r = thisyear(); }
else
	{ r = first + "&#8211;" +  thisyear(); }
return r; 
}


function contact()
{
var adr = "sus" + "an@susa" + "ndoreydes" + "igns.com";
alert("Email: " + adr + "\n\nTelephone: 415-453-7339");
}

function contactemail()
{
var adr = "sus" + "an@susa" + "ndoreydes" + "igns.com";
alert("Email: " + adr);
}


function writeemail()
{
var adr = "sus" + "an@susa" + "ndoreydes" + "igns.com";
document.write(adr);
}


function writephone()
{
var pho = "41" + "5-4" + "53-73" + "39";
document.write(pho);
}


function topofpage()
{
self.scrollTo(0,0);
}

function refresh()
{
location.reload();
}

