function AssignTextToLink(link, text)
{
    var hasInnerText = (link.innerText != undefined) ? true : false;
    var hasTextContent = (link.textContent != undefined) ? true : false;
    
    if (hasInnerText)
    {
        link.innerText = text;
    }
        
    if (hasTextContent)
    {
        link.textContent = text;
    }
}
