function minimizeTables(s_className)
{
	if(s_className == undefined) s_className = 'edit_table';
	$$("."+s_className).each(function(o_editTable)
	{
		if(o_editTable.getElements('td').length == 0)
		{
			o_editTable.style.display = "none";
		}
		else
		{
			o_editTable.getElements("label").each(function(o_label)
			{
				if(o_label.title != '')
				{
					//createHelpText(o_label.title, o_label.getParent());
				}
			});

			plusmin = "min";
			if(!o_editTable.hasClass("pop_open"))
			{
				plusmin = "plus";

				o_editTable.getElements("tr").each(function(o_tableTr)
				{
					if(!o_tableTr.getElement('th'))
					{
						o_tableTr.addClass('hidden_row');
					}
				});
			}

			o_tableHeader = o_editTable.getElement('th');
			o_tableHeader.innerHTML = "<div class='plusmin "+plusmin+"'></div> "+o_tableHeader.innerHTML;
			o_tableHeader.style.cursor = "pointer";
			o_tableHeader.style.paddingLeft = "2px";
			o_tableHeader.onclick = function()
			{
				if(o_editTable.hasClass("pop_open"))
				{
					o_editTable.removeClass('pop_open');
					o_editTable.getElement('.plusmin').className = "plusmin plus";
					o_editTable.getElements("tr").each(function(o_tableTr)
					{
						if(!o_tableTr.getElement('th'))
						{
							o_tableTr.addClass('hidden_row');
						}
					});
				}
				else
				{
					o_editTable.addClass('pop_open');
					o_editTable.getElement('.plusmin').className = "plusmin min";
					o_editTable.getElements("tr").each(function(o_tableTr)
					{
						if(!o_tableTr.getElement('th'))
						{
							o_tableTr.removeClass('hidden_row');
							o_tableTr.getElements(".helptextdiv").each(function(o_helpDiv)
							{
								o_helpDiv.positionIcon();
							});
						}
					});
				}
			}
		}
	});
}
