function initDom(){
	var col_=window.document.body.all;
	for (var i_=0;i_<col_.length;i_++){
		var o_=col_[i_];
		var s_=o_.tagName.toLowerCase();
		o_.hideFocus=true;o_.blur();
	}
}

window.onload = initDom







var iCheck = 0 ;
function SelectAll(theForm)
{
	if (iCheck==0)
	{
		for (var i=0;i<theForm.elements.length;i++)
		{
			theForm.elements[i].checked = true ;
			iCheck = 1 ;

		}
	}
	else
	{
		for (var i=0;i<theForm.elements.length;i++)
		{
			theForm.elements[i].checked = false ;
			iCheck = 0 ;
		}
	}
}


function SwitchMenu(SortCount,AllCount)
{
var ss;
for (i=1;i<=AllCount;i++)
{
	ss=eval("Sort1_"+i);
	if (SortCount==i)
	{
		//if (ss.style.display =="")
		//	ss.style.display ="none";
		//else
			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)
	{
	//	if (ss1.style.display =="")
	//		ss1.style.display ="none";
	//	else
			ss1.style.display ="";
	}
	else
		ss1.style.display ="none";
}
}
