// yeah, globals are bad whatever, but we need a way to keep track of this
// after the function exits, and JS has no static vars, so we dont care
var more = true;

function toggleLayer()
{

	if(!more)
	{
		var text = "<a href=\"javascript:toggleLayer('options');\">More Options</a>";
		more = true;
	}

	else
	{
		var text = "<a href=\"javascript:toggleLayer('options');\">Less Options</a>";
		more = false;
	} 



	// this is the way the standards work
	if (document.getElementById)
	{
		// hides and unhides the div
		var style2 = document.getElementById('options').style;
		style2.display = style2.display? "":"block";

		document.getElementById('expand').innerHTML = text;
	}

	// this is the way old msie versions work
	else if (document.all)
	{
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";

		document.all['expand'].innerHTML = text;

	}

	// this is the way nn4 works
	// the fact that this is actually needed really
	// scares the shit out of me
	// update your damn browser
	else if (document.layers)
	{
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";

		document.layers['expand'].innerHTML = text;
	}

}

function clearText(foo)
{
	if (foo.defaultValue == foo.value)
		foo.value = "" ;

} 
