function jemail(user, domain, suffix, subj, text){
var sSubj;
var sEmail;
var sText;

	sEmail = user + '@' + domain + '.' + suffix;
    
	// Use the subject paramerter if supplied 
	if (subj == '')  {
		sSubj = '';
		}
	else  {
		sSubj = '?subject=' + subj;
		}
		
	// Use the text paramerter in the <a>text</a> tag if supplied otherwise just use the email address
	if (text == '')  {
		sText = sEmail;
		}
	else  {
		sText = text;
		}
	
	document.write('<a href="' + 'mailto:' + sEmail + sSubj + '">' + sText + '</a>');
}

