function ReferenceTables(id)
{
	var serverName; //Name of the server

	serverName = location.host.toUpperCase();
	
	switch(serverName)
	{
		case "ECYWBLCYADD02": //Development
		{
			serverName = "https://test-fortress.wa.gov/ecy";
			break;
		}
		case "LOCALHOST": //Development
		{
			serverName = "https://test-fortress.wa.gov/ecy";
			break;
		}
		case "ECYWBLCYADP01": //Production
		{
			serverName = "http://ecyapps4";
			break;
		}
		case "ECYAPPS3": //Production
		{
			serverName = "http://ecyapps4";
			break;
		}
		default: //FORTRESS (Internet)
		{
			serverName = "https://fortress.wa.gov/ecy";
			break;
		}
	}
	winReferenceTables = window.location.href = serverName + '/ehs/Export.aspx?applicationNM=EIMReporting&refTableNm=' + id;
	return false;
}