/*
		GetEmailLink
			alias: ex: support
			domain: ex: jhsalumniassociation.com
			text: <optional> - the link's text.  Email address will be used if text isn't sent.
			subject: <optional> - a subject to add to the email.
*/
function GetEmailLink( alias, domain, text, subject )
{
	var temp = '';
	if( typeof(alias) == "string" && alias.length > 0 && typeof(domain) == "string" && domain.length > 0 )
	{
		var email = alias + '@' + domain;
		temp = '<a href="mailto:' + email;
		if( typeof(subject) == "string" && subject.length > 0 )
			temp += '?subject=' + encodeURIComponent(subject);
		temp += '">';
		if( typeof(text) == "string" && text.length > 0 )
			temp += text;
		else
			temp += email;
		temp += '</a>';
	}
	return temp;
}


/*
		GetJAAEmail
			alias: ex: support
			text: <optional> - the link's text. Email address will be used if text isn't sent.
			subject: <optional> - a subject to add to the email. 
*/
function GetJAAEmail( alias, text, subject )
{
  return GetEmailLink(alias, 'jhsalumniassociation.com', text, subject);
}


function GetJordanAlumniEmail( text, subject )
{
	return GetEmailLink('jeff', 'jordanalumni.com', text, subject);
}
