var cabs = new Array('cab1', 'cab2', 'cab3', 'cab4');function showCab(mab, cabName){	var cabToShow = document.getElementById(cabName);	for(i = 0; i< cabs.length; i++)	{		// Get the current panel		var curCab = document.getElementById(cabs[i]);		// If it exists, hide it		if (curCab != null)			curCab.style.display = 'none';	}	// This line works around a display bug in Gecko-based browsers	cabToShow.style.display = 'inline';	// Show the panel	cabToShow.style.display = 'block';	return false;}