function toggleVisible(ID) {

  // If the element with specified ID exists...
  if($(ID)){

    // Show if it was hidden, or hide if it was showing
    if ($(ID).visible()) {
      $(ID).hide();
    } else {
      $(ID).show();
    }

  }

}
