
function showElt(id, inherit) {
    var elt = document.getElementById(id);
    
    with(elt) {
        if(inherit == true) {
            style.visibility = "inherit";
        }
        else {
            style.visibility = "visible";
        }
        style.display = "inline";
        style.zIndex = 20;
    }
}

function hideElt(id) {
    var elt = document.getElementById(id);
    
    with(elt) {
        style.visibility = "hidden";
        style.display = "none";
        style.zIndex = 0;
    }
}

function changeStylePosition(id, position) {
    var elt = document.getElementById(id);
    
    with(elt) {
        style.position = position;
    }
}


function checkInputLength(objTextArea, length) {
    
    if(objTextArea.value.length> length){
        alert('Too many characters.')
        objTextArea.value = objTextArea.value.substring(0, length);    
    }
}
