﻿function gfnGetObj(strId) {
    return document.getElementById(strId);
}

function gfnGetAText(strInput, strTitle, intHideItem) {
    var astrInput = strInput.split(':'), strOutput = '';
    for(var i = 0; i < astrInput.length; i++)
        strOutput += String.fromCharCode(astrInput[i]);
    if (strOutput != '') {
        gfnGetObj('idHideA' + intHideItem).style.display = 'none';
        if (strTitle == '')
            strTitle = strOutput;
        return '<a href="mailto:' + strOutput + '" class="csMLink">' + strTitle + '</a>';
    }
}
