function GrabId (id)
{
	var toReturn = null;
	
	if (document.all)
	{
		toReturn = document.all[id];
	}
	else
	{
		toReturn = document.getElementById (id);
	}
	
	return toReturn;
}

function HideElementById (id)
{
	var element = GrabId (id);
	
	element.style.visibility = "hidden";
	
	return true;
}

function UnhideElementById (id)
{
	var element = GrabId (id);
	
	element.style.visibility = "visible";
	
	return true;
}

function ClearFormById (id)
{
	var theForm = GrabId (id);
	
	var actionParam = theForm.action.value;
	
	theForm.reset ();
	theForm.action.value = actionParam;
	
	return true;
}
