<%
var phraseeFirstName = recipient.firstName.charAt(0).toUpperCase() + recipient.firstName.substring(1, this.length).toLowerCase();
if (phraseeFirstName == '') {
var phraseeFirstNameColon = '';
var phraseeFirstNameComma = '';
var phraseeFirstNameStop = '';
var phraseeFirstNameSpace = '';
var phraseeFirstNameCommaEnd = '';
} else {
var phraseeFirstNameColon = phraseeFirstName + ': ';
var phraseeFirstNameComma = ', ' + phraseeFirstName;
var phraseeFirstNameStop = phraseeFirstName + '. ';
var phraseeFirstNameSpace = phraseeFirstName + ' ';
var phraseeFirstNameCommaEnd = phraseeFirstName + ', ';
}
%>
<%
if (targetData.language_variant_text === null || targetData.language_variant_text == '' || targetData.language_variant_text === undefined) {
language_variant_text = '';
} else {
language_variant_text = targetData.language_variant_text;
}
function looseJsonParse(obj){
return Function('"use strict";return (' + obj + ')')();
}
for (var step = 0; step < 2; step++) {
var startSLTag = language_variant_text.search("<%=");
if (startSLTag !== -1) {
var endSLTag = language_variant_text.search("%\>");
var tagSLToRep = language_variant_text.substring(startSLTag + 3, endSLTag);
tagSLToRep = tagSLToRep.trim();
language_variant_text = language_variant_text.split("<%= " + tagSLToRep + " %\>").join(looseJsonParse(tagSLToRep));
}
}
%>