function CA_MinMax( ctrlName, minCtrl, maxCtrl )
{
	try
	{
		var ctrl = document.getElementById( ctrlName );

		if ( ctrl )
		{
			//currentStyle
			if ( ctrl.style )
			{
				if ( ctrl.style.display )
				{
					var displayValue = ( ctrl.style.display == "none" ) ? "inline" : "none";
					ctrl.style.display = displayValue;
					
					if ( displayValue == "none" )
					{
						document.getElementById( minCtrl ).style.display = "none";
						document.getElementById( maxCtrl ).style.display = "inline";
					}
					else
					{
						document.getElementById( maxCtrl ).style.display = "none";
						document.getElementById( minCtrl ).style.display = "inline";
					}
				}
			}
		}
	}
	catch ( ex )
	{
		CA_ShowError(ex, "CA_MinMax");
	}
}
