/**
 * @Use	The Catalog module (Category List) has been overridden.
 * @author	Zeon Solutions
 */
// Global variable to handle the previous category
var globalRowId = null;
function showHideRow(rowId)
{
	// To hide table row
	var rowCount = 0;
	var row = null;
	while(true)
	{
		row = document.getElementById(globalRowId+"_"+rowCount++);
		if (row!=null)
				row.style.display = 'none';
		else
			break;
	}
	row = document.getElementById("morepro_"+globalRowId);
	if (row!=null)
	{
		row.style.display = '';
		row.className = 'morepro';
	}
	// To show table row
	rowCount = 0;
	globalRowId = rowId;
	while(true)
	{
		row = document.getElementById(rowId+"_"+rowCount++);
		if (row!=null)
				row.style.display = '';
		else
			break;
	}
	row = document.getElementById("morepro_"+rowId);
	if (row!=null)
		row.style.display = 'none';
}
