function divswitchto(x,state)
	{
	if (document.all)
		{ //IS IE 4 or 5 (or 6 beta)
		eval('document.all.' + x + '.style.display = state');
		}
	if (document.layers)
		{ //IS NETSCAPE 4 or below
		document.layers[x].display = state;
		}
	if (document.getElementById &&!document.all)
		{
		hza = document.getElementById(x);
		hza.style.display = state;
		}
		return true;
	}

function hidepage(Obj)
{
	divswitchto(Obj,'none');
	return true;
}

function showpage(Obj)
{
	divswitchto(Obj,'block');
	return true;
}

function hideall()
{
	hidepage('page1');
	hidepage('page2');
	hidepage('page3');
	hidepage('page4');
	return true;
}

function showall()
{
	showpage('page1');
	showpage('page2');
	showpage('page3');
	showpage('page4');
	return true;
}

function switchpage(Obj)
{
	hideall();
	showpage(Obj);
	return true;
}
