// This function takes product selection options
// from the popup menus and calls index.php with
// the right parameters

function viewCheese( view )
{
	with (window.document.frmListProduct)
	{
		var urlStr = 'index.php';
		var sep = '?';

		if( view != '' )
		{
			urlStr += sep;
			urlStr += 'view=';
			urlStr += view;
			sep = '&';
		}

		if( cboCountry.selectedIndex != 0 )
		{
			urlStr += sep
			urlStr += 'countId=';
			urlStr += cboCountry.options[cboCountry.selectedIndex].value;
			sep = '&';
		}

		if( cboMilk.selectedIndex != 0 )
		{
			urlStr += sep;
			urlStr += 'milkId=';
			urlStr += cboMilk.options[cboMilk.selectedIndex].value;
			sep = '&';
		}

		if( cboType.selectedIndex != 0 )
		{
			urlStr += sep;
			urlStr += 'typeId=';
			urlStr += cboType.options[cboType.selectedIndex].value;
		}

		window.location.href = urlStr;
	}
}

// This function takes product selection options
// from the popup menus and calls index.php with
// the right parameters

function viewMeat( view )
{
	with (window.document.frmListProduct)
	{
		var urlStr = 'index.php';
		var sep = '?';

		if( view != '' )
		{
			urlStr += sep;
			urlStr += 'view=';
			urlStr += view;
			sep = '&';
		}

		if( cboCountry.selectedIndex != 0 )
		{
			urlStr += sep
			urlStr += 'countId=';
			urlStr += cboCountry.options[cboCountry.selectedIndex].value;
			sep = '&';
		}

		if( cboType.selectedIndex != 0 )
		{
			urlStr += sep;
			urlStr += 'typeId=';
			urlStr += cboType.options[cboType.selectedIndex].value;
		}

		window.location.href = urlStr;
	}
}

