function ToggleItem(codebase, toggle, itemid, lotcount)
{
	var itemctr = 1;
	var itemcell;
	var groupimgtop;
	var groupimgbottom;
	var obj;
	var objimgtop;
	var objimgbottom;
	var i;

	for(i=2; i<=lotcount; i++)
	{
		itemcell = codebase + 'itemgroup' + itemid + i;

		if(document.all)
		{
			obj = eval(itemcell);
		}
		else
		{
			obj = document.getElementById(itemcell);
		}
		
		if(obj.style.display == 'none')
		{
			obj.style.display = '';
		}
		else
		{
			obj.style.display = 'none';
		}
	}

	if(document.all)
	{
		groupimgtop = 'document.forms[0].groupimgtop' + itemid;
		groupimgbottom = 'document.forms[0].groupimgbottom' + itemid;
	}
	else
	{
		groupimgtop = "document.getElementById('groupimgtop" + itemid + "');";
		groupimgbottom = "document.getElementById('groupimgbottom" + itemid + "');";
	}
	objimgtop = eval(groupimgtop);
	
	if(obj.style.display == 'none')
	{
		toggle.style.width = 15;
		toggle.style.backgroundColor = "#008800";
		//toggle.title = 'Show all lots in this group';
		objimgtop.src = 'graphics/groupexpandtop.gif';
		//objimgbottom.style.display = 'none';
	}
	else
	{
		toggle.style.width = 35;
		toggle.style.backgroundColor = "#cc0000";
		//toggle.title = 'Collapse this group';
		objimgtop.src = 'graphics/groupcollapsetop.gif';
		//objimgbottom.style.display = '';
	}
}
