var products = new Array();

function showPersonnel(tab, productName, namehide)
{
	var productToShow = document.getElementById(productName);
	var nameToHide = document.getElementById(namehide);

	for(i = 0; i< products.length; i++)
	{
		// Get the current panel
		var curProduct = document.getElementById(products[i]);

		// If it exists, hide it
		if (curProduct != null)
			curProduct.style.display = 'none';
	}

	// Show the panel
	nameToHide.style.display = 'none';
	productToShow.style.display = 'block';
	
	return false;
}

function hidePersonnel(tab, productName, namehide)
{
	var productToShow = document.getElementById(productName);
	var nameToHide = document.getElementById(namehide);
	
	for(i = 0; i< products.length; i++)
	{
		// Get the current panel
		var curProduct = document.getElementById(products[i]);

		// If it exists, hide it
		if (curProduct != null)
			curProduct.style.display = 'none';
	}

	// Show the panel
	nameToHide.style.display = 'block';
	productToShow.style.display = 'none';
	
	return false;
}

function showYes(tab, productName, namehide)
{
	var productToShow = document.getElementById(productName);
	var nameToHide = document.getElementById(namehide);
	
	noText = namehide + "no";
	
	var noTextHide = document.getElementById(noText);
	
	// Show the panel
	nameToHide.style.display = 'none';
	productToShow.style.display = 'inline';
	
	noTextHide.style.display = 'none';
	
	return false;
}

function showNo(tab, productName, namehide, yeshide)
{
	var productToShow = document.getElementById(productName);
	var nameToHide = document.getElementById(namehide);
	var yesTextHide = document.getElementById(yeshide);
	
	// Show the panel
	nameToHide.style.display = 'none';
	productToShow.style.display = 'block';
	
	yesTextHide.style.display = 'none';
	
	return false;
}

function hideYes(tab, productName, namehide)
{
	var productToShow = document.getElementById(productName);
	var nameToHide = document.getElementById(namehide);
	
	noText = namehide + "no";
		
	var noTextHide = document.getElementById(noText);
	
	// Show the panel
	nameToHide.style.display = 'inline';
	productToShow.style.display = 'none';
	
	noTextHide.style.display = 'inline';
	
	return false;
}

function hideNo(tab, productName, namehide, yeshide)
{
	var productToShow = document.getElementById(productName);
	var nameToHide = document.getElementById(namehide);
	var yesTextHide = document.getElementById(yeshide);
	
	// Show the panel
	nameToHide.style.display = 'inline';
	productToShow.style.display = 'none';
	
	yesTextHide.style.display = 'inline';
	
	return false;
}
