// JavaScript Document
function showtab(m,n,count){
	var strPic1;
	var strPic2;
	var strPic3;
	var strPic4;
	var tdcolor;
	if (m==1) {
	strPic1='url()';
	strPic2='url()';
		for(var i=1;i<=count;i++){
		if (i==n){			
//			getObject(m+'_'+i).style.background=strPic1;
//			getObject('td_'+m+'_'+i).style.color='#ffffff';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
//			getObject(m+'_'+i).style.background=strPic2;
//			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}

	if (m==2) {
	strPic1='url(/images/bs2.jpg)';
	strPic2='url(/images/bs1.jpg)';
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject(m+'_'+i).style.background=strPic1;
//			getObject('td_'+m+'_'+i).style.color='#ffffff';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject(m+'_'+i).style.background=strPic2;
//			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}


	if (m==3) {
	tdcolor='#989898';
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject('bg_'+m+'_'+i).style.backgroundColor=tdcolor;
			getObject('td_'+m+'_'+i).style.color='#ffffff';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject('bg_'+m+'_'+i).style.backgroundColor='#ffffff';
			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
	if (m==5) {
	strPic3='url()';
	strPic4='url()';
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject(m+'_'+i).style.background=strPic3;
			getObject('td_'+m+'_'+i).style.color='AA0000';
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject(m+'_'+i).style.background=strPic4;
			getObject('td_'+m+'_'+i).style.color='#000000';
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
	else {
		for(var i=1;i<=count;i++){
		if (i==n){			
			getObject('tab_'+m+'_'+i).style.display='';
			}
		else {
			getObject('tab_'+m+'_'+i).style.display='none';
			}
	}
}
}
function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getObject
//-->
function filt(o,n,m) {
	var on=o + n;
	for(i=1;i<=m;i++) {
		    document.all(o + i + "0").style.display="none";
			document.all(o + i).background="images/red_r8_c48.jpg";
			document.all(o + i ).style.color="";
			if(i==n) {
			document.all(o + i + "0").style.display="";
			document.all(o + i).background="images/red_r8_c6.jpg";
			document.all(o + i ).style.color="#ffffff";
			}
	}
}
function bs(o,n,m) {
	var on=o + n;
	for(j=1;j<=m;j++) {
		    document.all(o + j + "0").style.display="none";
			document.all(o + j).style.background="#FFFFFF";
			document.all(o + j).style.color="#000000";
			if(j==n) {
			document.all(o + j + "0").style.display="";
		document.all(o + j).style.background="#C81207";
			document.all(o + j).style.color="#ffffff";
			}
	}
}
function ll(o,n,m) {
	var on=o + n;
	for(l=1;l<=m;l++) {
		    document.all(o + l + "0").style.display="none";
			if(l==n) {
			document.all(o + l + "0").style.display="";
			}
	}
}
function xbbs(o,n,m) {
	var on=o + n;
	for(x=1;x<=m;x++) {
		    document.all(o + x + "0").style.display="none";
			if(x==n) {
			document.all(o + x + "0").style.display="";
			}
	}
}
function zx(o,n,m) {
	var on=o + n;
	for(x=1;x<=m;x++) {
		    document.all(o + x + "0").style.display="none";
			document.all(o + x).background="images/bs111.jpg";
			document.all(o + x ).style.color="";
			if(x==n) {
			document.all(o + x + "0").style.display="";
			document.all(o + x).background="images/bs222.jpg";
			document.all(o + x ).style.color="#ff0000";
			
			}
	}
}
function zm(o,n,m) {
	var on=o + n;
	for(y=1;y<=m;y++) {
		    document.all(o + y + "0").style.display="none";
			document.all(o + y).background="images/bs111.gif";
			document.all(o + y ).style.color="";
			if(y==n) {
			document.all(o + y + "0").style.display="";
			document.all(o + y).background="images/bs222.gif";
			document.all(o + y ).style.color="#000000";
			}
	}
}
function zfjg(o,n,m) {
	var on=o + n;
	for(z=1;z<=m;z++) {
		    document.all(o + z + "0").style.display="none";
			document.all(o + z).background="images/bs111.jpg";
			document.all(o + z ).style.color="";
			if(z==n) {
			document.all(o + z + "0").style.display="";
			document.all(o + z).background="images/bs222.jpg";
			document.all(o + z ).style.color="#ff0000";
			}
	}
}
function zh(o,n,m) {
	var on=o + n;
	for(a=1;a<=m;a++) {
		    document.all(o + a + "0").style.display="none";
			document.all(o + a).background="images/bs111.jpg";
			document.all(o + a).style.color="";
			if(a==n) {
			document.all(o + a + "0").style.display="";
			document.all(o + a).background="images/bs222.jpg";
			document.all(o + a).style.color="#ff0000";
			}
	}
}
function bm(o,n,m) {
	var on=o + n;
	for(b=1;b<=m;b++) {
		    document.all(o + b + "0").style.display="none";
			document.all(o + b).background="images/red_r8_c48.jpg";
			document.all(o + b).style.color="";
			if(b==n) {
			document.all(o + b + "0").style.display="";
			document.all(o + b).background="images/red_r8_c6.jpg";
			document.all(o + b).style.color="#ffffff";
			}
	}
}
function gw(o,n,m) {
	var on=o + n;
	for(g=1;g<=m;g++) {
		    document.all(o + g + "0").style.display="none";
			document.all(o + g).background="images/red_r8_c48.jpg";
			document.all(o + g ).style.color="";
			if(g==n) {
			document.all(o + g + "0").style.display="";
			document.all(o + g).background="images/red_r8_c6.jpg";
			document.all(o + g ).style.color="#ffffff";
			}
	}
}
function zt(o,n,m) {
	var on=o + n;
	for(c=1;c<=m;c++) {
		    document.all(o + c + "0").style.display="none";
			document.all(o + c).background="images/red_r8_c48.jpg";
			document.all(o + c ).style.color="";
			if(c==n) {
			document.all(o + c + "0").style.display="";
			document.all(o + c).background="images/red_r8_c6.jpg";
			document.all(o + c ).style.color="#ffffff";
			}
	}
}
function lyb(o,n,m) {
	var on=o + n;
	for(l=1;l<=m;l++) {
		    document.all(o + l + "0").style.display="none";
			document.all(o + l).background="images/red_r8_c48.jpg";
			document.all(o + l ).style.color="";
			if(l==n) {
			document.all(o + l + "0").style.display="";
			document.all(o + l).background="images/red_r8_c6.jpg";
			document.all(o + l ).style.color="#ffffff";
			}
	}
}
ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
function   printsetup(){   
　　//   打印页面设置   
　　wb.execwb(8,1);   
　　}   
　　function   printpreview(){   
　　//   打印页面预览   
　　　　   
　　wb.execwb(7,1);   
　　　　　   
　　　　   
　　}   

　　function   printit()   
　　{   
　　if   (confirm( '确定打印吗？ '))   {   
　　wb.execwb(6,6)   
　　}   
　　}   
