﻿

//Purpose:
//  Toggles the visibility of an object on the page.
//Params:
//  aObjectClientID (string): The client side id of the page element
//  aShowIt (boolean):        A true or false to determine if the page element 
//                            should be shown or hidden
function showObject(aObjectClientID, aShowIt) {

  if (aObjectClientID.length > 0) {

    var obj = document.getElementById(aObjectClientID);

    if (obj != null) {
      
      if (aShowIt) {
        obj.className = "visible"; //'visible' is a class defined in the StyleSheet.css file
      }
      else {
        obj.className = "hidden"; //'hidden' is a class defined in the StyleSheet.css file
      }
    }

  }
  return true;
}


