// JavaScript Document
//////	char set:	UTF-8
//////
///////////////////////////////
//以下是基础功能函数 (UTF-8)

function hide_box(boxid)
{
	var box=document.getElementById(boxid);
	if(box==null) return false;
	box.style.display="none";
	return true;
}

function show_box(boxid)
{
	var box=document.getElementById(boxid);
	if(box==null) return false;
	box.style.display="block";
	return true;
}

function hide_show_box(boxid,curID)
{
	//alert(boxid);
	var isdebug=false;
//	isdebug=!isdebug
	var box=document.getElementById(boxid);
	var imgbox=document.getElementById("b__"+curID);
	if(box==null && isdebug)
	{
		alert("cannot get box:"+boxid);
		return false;
	}
	//alert(box.style.display);
	if(box.style.display=="block")
	{
		box.style.display="none";
		imgbox.innerHTML="<a href='#' onclick='return clickClassNameBox(this,"+curID+")'><img src=http://www.bioon.com.cn/images/subtract.gif border=0 /></a>";
	}
	else
	{
		box.style.display="block";
		imgbox.innerHTML="<a href='#' onclick='return clickClassNameBox(this,"+curID+")'><img src=http://www.bioon.com.cn/images/plus.gif border=0 /></a>";
	}
	return true;
}
function clickClassNameBox(thisBox,curID)
{
	childClassBox=document.getElementById("b__"+curID+"_lst");
	if(typeof(childClassBox)=="undefined")
	{
		return false;
	}
	else
	{
		hide_show_box("b__"+curID+"_lst",curID);
	}
	return false;
}


