var subs_array = new Array("tab5", "tab3", "tab4", "tab1");

/**
 * Displays the selected tab
 * @param - id of the div to be displayed
 */
function displayTab(the_sub){
	// Set the DISPLAY property to BLANK (This will SHOW the selected TAB)
	document.getElementById(the_sub).style.display = "";

	// Loop through all other tabs and set DISPLAY property to NONE (This will HIDE the other tabs)
	for (i=0; i<subs_array.length ; i++){

		// Do not hide the selected tab, but all others
		if(the_sub != subs_array[i]) {
			var my_sub = document.getElementById(subs_array[i]);
			my_sub.style.display = "none";
		}
	}
}
