function fontZoom(size)
{
	document.getElementById('Content').style.fontSize=size+'px'
}

var iCheck = 0 ;
function SelectAll(theForm,edition)
{
	var edition=edition;
	var cancel;
	var Selectall;
	if (edition==0)
		{
			cancel="È¡ Ïû";
			Selectall="È« Ñ¡"
		}
	else
		{
			cancel="Cancel";
			Selectall="Select all"
		}
	if (iCheck==0)
	{
		for (var i=0;i<theForm.elements.length;i++)
		{
			theForm.elements[i].checked = true ;
			iCheck = 1 ;
			theForm.selectall.value = cancel ;
		}
	}
	else
	{
		for (var i=0;i<theForm.elements.length;i++)
		{
			theForm.elements[i].checked = false ;
			iCheck = 0 ;
			theForm.selectall.value = Selectall ;
		}
	}
}

function SwitchMenu(SortCount,AllCount)
{
var ss;
for (i=1;i<=AllCount;i++)
{
	ss=eval("Sort1_"+i);
	if (SortCount==i)
	{
		ss.style.display ="";
	}
	else
		ss.style.display ="none";
}
}

function SwitchMenu1(SortCount,SortCount1,AllCount1)
{
var ss,bts;
ss=eval("Sort1_"+SortCount);
ss.style.display ="";
for (i=1;i<=AllCount1;i++)
{
	ss1=eval("Sort_"+SortCount+"_"+i);
	if (SortCount1==i)
	{
		ss1.style.display ="";
	}
	else
		ss1.style.display ="none";
}
}

function SwitchMenuBBS(SortCount,AllCount){
var ss;
for (i=1;i<=AllCount;i++)
{
	ss=eval("aa"+i);
	if (SortCount==i)
	{
		if (ss.style.display =="")
			ss.style.display ="none";
		else 
			ss.style.display ="";
	}
	else
		ss.style.display ="none";
}
}
