{for o in data}
{eval}
theId = 'id=\'' + o.official.guid + '\'';
theOnclick = ' onclick=\'officialSelected("' + o.official.guid + '", ' + o.official.type + ')\'';
if (o_index % 2) {
theClass = ' class="resultRow rowEven"';
}
else {
theClass = ' class="resultRow rowOdd"';
}
theDivStart = '<' + 'div ' + theId + theOnclick + theClass + '>';
theDivEnd = '<' + '/div' + '>';
{/eval}
${theDivStart}
27} title="${o.official.districtid}" {/if}>
{if isNaN(o.official.districtid)}
{eval}
repDistrict = o.official.districtid;
if (repDistrict.length > 27) {
repDistrict = left(repDistrict, 24) + '...';
}
{/eval}
${repDistrict}
{else}
District ${o.official.districtid}
{/if}
{eval}
repField = o.official.title + " " + o.official.firstname + " " + o.official.lastname;
if (repField.length > 45) {
repField = left(repField, 45) + '...';
}
{/eval}
${repField}
${theDivEnd}
{/for}