// JavaScript Document
function checkEmailAddress(field)
	{
	var goodEmail =
		field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
	//alert (field.value);
	if (goodEmail)
		{return(true);}
	else
		{
		alert('Please enter a valid e-mail address.');
		field.focus();
		field.select();
		return(false);
		}
	}

function emailalink()
	{
	var mailsubject="I thought this might interest you...";
	theelement = document.emailthispage.emailaddress;
	//alert(theelement.value);
	if (checkEmailAddress(theelement))
		{
		cr = encodeURI("\n");
		window.location = 
			"mailto:"+theelement.value+"?subject="+mailsubject+
			"&body="+document.title+" "+cr+window.location;
		}
	return false;
	}

