function showhide(action, id)
{	
	if(action == "show")
	{
		// clear the class name.  this will make the div show.
		window.document.getElementById(id).className = "";

		// set disabled to false on all input fields inside this div.
		var inputTags = window.document.getElementById(id).getElementsByTagName("input");
		for (i = 0; i < inputTags.length; i++)
		{
			inputTags[i].disabled = false;
		}

	}
	else if(action == "hide")
	{
		// the class "hidden" will hide this div.
		window.document.getElementById(id).className = "hidden";

		// get all input tags inside this div.  they will need to be disables so their _
		// values don't get returned to ASP when doing a Request.Form.  if they aren't _
		// disabled some fields won't process correctly.
		var inputTags = window.document.getElementById(id).getElementsByTagName("input");
		for (i = 0; i < inputTags.length; i++)
		{
			inputTags[i].disabled = true;
		}

	}
	
	// this code is to force IE6 to move the 'Send to friend' button on a dynamic page resize
	var sendFriend1 = document.getElementById("sendFriend1");
	var sendFriend2 = document.getElementById("sendFriend2");
	if (sendFriend1 != null) {
		sendFriend1.style.display = 'none';
		sendFriend1.style.display = 'block';
	}
	if (sendFriend2 != null) {
		sendFriend2.style.display = 'none';
		sendFriend2.style.display = 'block';
	}
}