function addy(user, display){
	server = 'onereel.org'
	open1 = '<a href="ma'
	open2 = 'ilto:'
	open3 = '">'
	close1 = '</a>'
	document.write(open1 + open2 + user + '\x40' + server + open3 + display + close1);
	}
	
function popNew(a,n,h,w)    {
	popWin = window.open(a,n,'directories=0,height=' + h + ',width=' + w + ',location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0');
   return false;
}

showEmails = function() {
	email_adds = $("main").getElementsByClassName("elink");
	//alert(email_adds);
	for (i = 0; i < email_adds.length; i++) {
		eaddr = email_adds[i];
		addr = eaddr.getAttribute('id');
		// underscored values enable multiple uses of the same email on the page, but with a slightly different id.
		altext = addr.lastIndexOf("_");
		// if there are others, we strip the leading underscores and return the actual email addressee
		if(altext == 0) {addr_temp = addr.substring(altext+1,addr.length); } else { addr_temp = addr;}
		showeml = addr_temp + 'onereel.org';
		$(addr).update('<a href="mailto:' + showeml + '">' + showeml + '</a>');
	}
}