function showAg(target){
    var vTarget = document.getElementById(target)
    
    //makes sure that the next if statement works correctly by ensuring that the target is hidden
    if (!vTarget.style.visibility)
        vTarget.style.visibility = "hidden"
        
    //if its hidden, show it, if its shown, hide it
    if (vTarget.style.visibility == "hidden") {
        vTarget.style.visibility = "visible"
        vTarget.style.height = "auto"
    } else {
        vTarget.style.visibility = "hidden"
        vTarget.style.height = "0px"
    }
}