function change(id, newClass) {
/* +===============================================================================================================+
   | Given the ID attribute of the desired HTML element and the newClass to which the element should change,       |
   | do just that and assign newClass to the class property of the element ID.                                     |
   +===============================================================================================================+ */

identity=document.getElementById(id);  // This is required for Mozilla-based browsers (including NS)
identity.className=newClass;  // Change the element's class to newClass
} // end change()

function toggle(id) {
/* +===============================================================================================================+
   | Given the ID attribute of the desired HTML element, toggle its current visibility state.                      |
   +===============================================================================================================+ */
	identity = document.getElementById(id);  // This is required for Mozilla-based browsers (including NS)
	if (identity.className == 'nowShowing') {
		change (id, 'nowHiding');
	} else {
		change (id, 'nowShowing');
	};
} // end toggle()

function openNirsaDiscount() {
/* +======================================+
   | Opens the nirsa discount window      |
   +======================================+ */
	openWin('/nirsaMemDiscount.cfm', 'memDisc', 'width=300,height=120,left=20,top=20');
} // end openNirsaDiscount()
