function Esconde_Elemento(el) {
    document.getElementById(el).style.display='none';
}

function Mostra_Elemento(el) {
    document.getElementById(el).style.display='block';
}

function Elimina_Elemento(el) {
    var doc=document.getElementById(el);
    while (doc.firstChild) {
        doc.removeChild(doc.lastChild);
    }
}

function Substitui_Texto(el, text) {
    if (el != null) {
        Apaga_Texto(el);
        var newNode = document.createTextNode(text);
        el.appendChild(newNode);
    }
}

function Apaga_Texto(el) {
    if (el != null) {
        if (el.childNodes) {
            for (var i = 0; i < el.childNodes.length; i++) {
                var childNode = el.childNodes[i];
                el.removeChild(childNode);
            }
        }
    }
}

function Obtem_Texto(el) {
    var text = "";
    if (el != null) {
        if (el.childNodes) {
            for (var i = 0; i < el.childNodes.length; i++) {
                var childNode = el.childNodes[i];
                if (childNode.nodeValue != null) {
                    text = text + childNode.nodeValue;
                }
            }
        }
    }
return text;
}
