function disableObjectsThatNotSupportFreeEdition(tooltip)
{
    disableAnchors(tooltip);
    disableInput(tooltip);
}

function disableAnchors(tooltip) 
{
    var title = tooltip;
    var allAnchors = document.getElementsByTagName("a");    
    for(i = 0; i < allAnchors.length; i++)
    {        
        var href = allAnchors[i];        
        if (href.getAttribute("disableOnFree") != null)
        {
            href.href="#";
            href.setAttribute("onclick", "return false;");
            href.style.color = "gray";
            href.title = title;
        }
    }    
}

function disableInput(tooltip) 
{
    var title = tooltip;
    var allInput = document.getElementsByTagName("input");    
    for(i = 0; i < allInput.length; i++)
    {
        var input = allInput[i];        
        if (input.type == "button" && input.getAttribute("disableOnFree") != null)
        {
            input.disabled = true;
            input.setAttribute("onclick", "return false;");
            input.title = title;
        }
    }    
}
