﻿/*
 * JavaScript:
 * Operações com ListBoxs
 */
 

/*
 * Esconde um elemento
 */
function swapElements(show, hide) {
    show.style.display='inline';
    hide.style.display='none';
}

/*
 * Mostra um elemento
 */
 
function showElement(show, event) {
    show.style.display='block';
    //var top = show.parentNode.style.top + document.body.scrollTop + 5;
    //show.style.top = top + "px";
    //var left = show.parentNode.positionX + document.body.scrollLeft + 5;
    //show.style.left = left + "px";
}

function hideElement(hide) {
    if (hide != null) {
        hide.style.display='none';
    }
}

function showElement_table(show, event) {
    show.style.display='block';
    //var top = show.parentNode.style.top + document.body.scrollTop + 5;
    //show.style.top = top + "px";
    //var left = show.parentNode.positionX + document.body.scrollLeft + 5;
    //show.style.left = left + "px";
}

function showElementTable(show, event) {
    show.style.display='';
    //var top = show.parentNode.style.top + document.body.scrollTop + 5;
    //show.style.top = top + "px";
    //var left = show.parentNode.positionX + document.body.scrollLeft + 5;
    //show.style.left = left + "px";
}
