// JavaScript Document

function showHideClientInfo(clientName,section){
	// iterate through all the clientList and hide any show classnames;
	// if section == TRUE then do this-means clicked on upper area
	if (section == "TRUE")
	{
		var arrChildren = document.getElementById("clientList").childNodes;
		
	  for(i = 0; i < arrChildren.length; i++)
		{
			if (arrChildren[i].className == "show")
			{
				arrChildren[i].className = "hide";
			}; 
		}  
		document.getElementById(clientName).className = "show";
	}
		
}

function hideSection(clientName, section)
	{
		// section == false then only close the area
		if (section == "FALSE")
		{
			// when clicked on [-], section should close
			var arrChildren = document.getElementById(clientName);
			arrChildren.className = "hide";
		}
		
	}
	
function underlineClient(oClient){
	oClient.className = "hiliteClient";
}

function normalClient(oClient){
	oClient.className = "client";
}