﻿//--------------------------------------------------------
// Common Functions
//--------------------------------------------------------

// Return the TAG location based on a given ID
function GET(whichID)
{
	return document.getElementById(whichID);
}
	
// Turn TAG visibility On/Off
function displayTAG(whichTAG, onOff)
{
	var wd = GET(whichTAG);
	
	if(wd != null)
	{
		if(onOff == 1)
		{
			wd.style.display = "";
			return true;
		}
		else
		{
			wd.style.display = "none";
			return false;
		}
	}
	else
	{
		return false;
	}
}

// Toggle TAG visibility
function toggleTAG(whichTAG)
{
	var wd = GET(whichTAG)
	
	if(wd != null)
	{
		if(wd.style.display == "none")
		{
			wd.style.display = "";
			return true;
		}
		else
		{
			wd.style.display = "none";
			return false;
		}
	}
	else
	{
		return false;
	}
}

function showStateList(whichList)
{
	var sl = GET(whichList);
	
	
}