			
			
function getEmailAuthorTitle(authorUserGroups)
{
    var userGroup;
    var commaLoc;			
    
	userGroup= new String(authorUserGroups) //.replace(/\s/g,"_");
	//userGroup= new String ("Gone fishing c, todoay").replace(/\s/g,"_");
	commaLoc= userGroup.indexOf(",");

	//multiple user groups.
	if (commaLoc >-1)
	   userGroup= userGroup.substr(0, commaLoc);
	   
	//no user groups
	else if (userGroup.length==0)
	   userGroup= 'Author';
	   
    userGroup= 'Email ' + userGroup
    
    return userGroup;
}