﻿// Archivo JScript
function showHide(elemId, imgId){
obj=document.getElementById(elemId);
objImg=document.getElementById(imgId);
    if(obj){
        if(obj.style){
            if(obj.style.visibility){
                if(obj.style.visibility=='hidden'){
                    showElement(elemId);
                    if(objImg){
                        objImg.src="img/arrowup.gif";
                    }
                }else{
                    hideElement(elemId);
                    if(objImg){
                        objImg.src="img/arrowdown.gif";
                    }
                }
            }
        }
    }
}
function showElement(elemId){
    obj=document.getElementById(elemId);
    if(obj){
        if(obj.style){
            if(obj.style.visibility){
                obj.style.visibility="visible";
            }
            if(obj.style.display){
                obj.style.display="inline";
            }
        }
    }
}
function hideElement(elemId){
    obj=document.getElementById(elemId);
    if(obj){
        if(obj.style){
            if(obj.style.visibility){
                obj.style.visibility="hidden";
            }
            if(obj.style.display){
                obj.style.display="none";
            }
        }
    }
}
function goControl(elemId){
    obj=document.getElementById(elemId);
    if(obj){
        obj.focus();
    }
}


