﻿// JScript File
function hideRow(rowID) {	 
    if(document.getElementById(rowID)) {
        document.getElementById(rowID).style.display = 'none'; 	
      //  document.getElementById(rowID).style.visibility = 'collapse'; 
    }
}
function showRow(rowID) {
    if(document.getElementById(rowID)) {
        document.getElementById(rowID).style.visibility = 'visible'; 
        document.getElementById(rowID).style.display = (document.all && !window.opera)? 'block' : 'table-row'; 
    }
}
function hideRowObj(rowObj) {	 
    if(rowObj) {
       rowObj.style.display = 'none'; 	
      //  document.getElementById(rowID).style.visibility = 'collapse'; 
    }
}
function showRowObj(rowObj) {
    if(rowObj) {
       rowObj.style.visibility = 'visible'; 
       rowObj.style.display = (document.all && !window.opera)? 'block' : 'table-row'; 
    }
}

function swapRow(rowID){
    
    if(isShowing(rowID)){
        hideRow(rowID);
    } else {
        showRow(rowID);
    }

}
function isShowing(rowID){
    if(document.getElementById(rowID)){
        if(document.getElementById(rowID).style.display == 'none'){
            return false;
        } else {
            return true;
        }
    } else {
        return false;
    }
}