
// $Id: toggle.js,v 1.3 2006/03/28 12:13:21 chrisgraham Exp $

function displayToggle(item)
{
	thisItem = document.getElementById(item);
	thisItem.style.display = ((thisItem.style.display == "none" || thisItem.style.display == '') ? "block" : "none");
}

function toggleAndHide(item1,item2)
{
	thisItem = document.getElementById(item1);
	thisItem.style.display = (thisItem.style.display == "none" ? "block" : "none");

	otherItem = document.getElementById(item2);
	otherItem.style.display = "none";
}

// $Log: toggle.js,v $
// Revision 1.3  2006/03/28 12:13:21  chrisgraham
// Changed the displayToggle method to toggle on pageload as the display attribute is an empty string for some reason
//
// Revision 1.2  2006/01/27 16:26:49  chrisgraham
// Tidied up the code
//
// Revision 1.1  2006/01/18 10:43:57  aaronpollock
// Initial check in of file
//
