// JavaScript Document
var curTable=0;
var table1id="";
var table2id="";
var table3id="";
var table4id="";

function showTablePage0(t)
{
table1id="czzl001";
table2id="czzl002";
table3id="czzl003";
table4id="czzl004";

table1id=table1id+"table";
table2id=table2id+"table";
table3id=table3id+"table";
table4id=table4id+"table";

var table1 = document.getElementById(table1id);
var table2 = document.getElementById(table2id);
var table3 = document.getElementById(table3id);
var table4 = document.getElementById(table4id);

if (1==t)
{
document.all.btn01a.style.display="block";
document.all.btn01b.style.display="none";

document.all.btn02a.style.display="none";
document.all.btn02b.style.display="block";

document.all.btn03a.style.display="none";
document.all.btn03b.style.display="block";

document.all.btn04a.style.display="none";
document.all.btn04b.style.display="block";

table1.style.display="inline";
table2.style.display="none";
table3.style.display="none";
table4.style.display="none";

}else if (2==t)
{

document.all.btn01a.style.display="none";
document.all.btn01b.style.display="block";

document.all.btn02a.style.display="block";
document.all.btn02b.style.display="none";

document.all.btn03a.style.display="none";
document.all.btn03b.style.display="block";

document.all.btn04a.style.display="none";
document.all.btn04b.style.display="block";

table1.style.display="none";
table2.style.display="inline";
table3.style.display="none";
table4.style.display="none";

}else if(3==t)
{
document.all.btn01a.style.display="none";
document.all.btn01b.style.display="block";

document.all.btn02a.style.display="none";
document.all.btn02b.style.display="block";

document.all.btn03a.style.display="block";
document.all.btn03b.style.display="none";

document.all.btn04a.style.display="none";
document.all.btn04b.style.display="block";

table1.style.display="none";
table2.style.display="none";
table3.style.display="inline";
table4.style.display="none";

}else if(4==t)
{

document.all.btn01a.style.display="none";
document.all.btn01b.style.display="block";

document.all.btn02a.style.display="none";
document.all.btn02b.style.display="block";

document.all.btn03a.style.display="none";
document.all.btn03b.style.display="block";

document.all.btn04a.style.display="block";
document.all.btn04b.style.display="none";

table1.style.display="none";
table2.style.display="none";
table3.style.display="none";
table4.style.display="inline";

}

}

function showTablePage8(t)
{
table1id="czzl001";
table2id="czzl002";
table3id="czzl003";
table4id="czzl004";

table1id=table1id+"table";
table2id=table2id+"table";
table3id=table3id+"table";
table4id=table4id+"table";

var table1 = document.getElementById(table1id);
var table2 = document.getElementById(table2id);
var table3 = document.getElementById(table3id);
var table4 = document.getElementById(table4id);

if (1==t)
{
document.all.btn01a.style.display="block";
document.all.btn01b.style.display="none";

document.all.btn02a.style.display="none";
document.all.btn02b.style.display="block";

document.all.btn03a.style.display="none";
document.all.btn03b.style.display="block";

document.all.btn04a.style.display="none";
document.all.btn04b.style.display="block";

table1.style.display="inline";
table2.style.display="none";
table3.style.display="none";
table4.style.display="none";

}else if (2==t)
{

document.all.btn01a.style.display="none";
document.all.btn01b.style.display="block";

document.all.btn02a.style.display="block";
document.all.btn02b.style.display="none";

document.all.btn03a.style.display="none";
document.all.btn03b.style.display="block";

document.all.btn04a.style.display="none";
document.all.btn04b.style.display="block";

table1.style.display="none";
table2.style.display="inline";
table3.style.display="none";
table4.style.display="none";

}else if(3==t)
{
document.all.btn01a.style.display="none";
document.all.btn01b.style.display="block";

document.all.btn02a.style.display="none";
document.all.btn02b.style.display="block";

document.all.btn03a.style.display="block";
document.all.btn03b.style.display="none";

document.all.btn04a.style.display="none";
document.all.btn04b.style.display="block";

table1.style.display="none";
table2.style.display="none";
table3.style.display="inline";
table4.style.display="none";

}else if(4==t)
{

document.all.btn01a.style.display="none";
document.all.btn01b.style.display="block";

document.all.btn02a.style.display="none";
document.all.btn02b.style.display="block";

document.all.btn03a.style.display="none";
document.all.btn03b.style.display="block";

document.all.btn04a.style.display="block";
document.all.btn04b.style.display="none";

table1.style.display="none";
table2.style.display="none";
table3.style.display="none";
table4.style.display="inline";

}

}


//
 function changeDisplay(a,b){
  for(var i=0;i<7;i++){
   src = eval("consult_"+a+"_"+i);
   src.style.display = "none";
  }
  desc = eval("consult_"+a+"_"+b);
  desc.style.display = "";   }
  //
  
function _showtable(tablename,tableorder,num)
{
	var table_id=tablename+'_'+tableorder;
	var showtable=document.getElementById(table_id);
	for(var i=1;i<=num;i++)
	{
		var temp=tablename+'_'+i;
		var temptable=document.getElementById(temp);
		temptable.style.display='none';
	}
	showtable.style.display='block';
}
function _hidetable(tablename,tableorder,num)
{
	var table_id=tablename+'_'+tableorder;
	var showtable=document.getElementById(table_id);
	for(var i=1;i<=num;i++)
	{
		var temp=tablename+'_'+i;
		var temptable=document.getElementById(temp);
		temptable.style.display='none';
	}
}
function _changeimg(tdname,tdorder,imgpath,num,type)
{
	var td_id=tdname+'_'+tdorder;
	var showtd=document.getElementById(td_id);
	if(type=='bk')
	{
		for(var i=1;i<=num;i++)
		{
			var temp=tdname+'_'+i;
			var temptd=document.getElementById(temp);
			temptd.background=imgpath+tdname+'_'+'off.jpg';
		}
		showtd.background=imgpath+tdname+'_'+'on.jpg';
	}
	else if(type=='img')
	{
		for(var i=1;i<=num;i++)
		{
			var temp=tdname+'_'+i;
			var temptd=document.getElementById(temp);
			temptd.src=imgpath+tdname+'_'+'off_'+i+'.jpg';
		}
		showtd.src=imgpath+tdname+'_'+'on_'+tdorder+'.jpg';
	}
}
