function tg(elm,num,total) {
			tgTab(elm,num,total) ;
			tgSub(elm,num,total) ;
			//showImage(num) ;
			document.body.focus();
		}
				function tgTab(elm,num,total) {
			for(i=1;i<=total;i++) {
				document.getElementById(elm+"_"+i).className = "dl_bg2" ;
			}
			document.getElementById(elm+"_"+num).className = "dl_bg1" ;
		}
		function tgSub(elm,num,total) {
			for (i=1;i<=total;i++) {
				document.getElementById(elm+"_sub"+i).style.display = "none" ;
			}
			document.getElementById(elm+"_sub"+num).style.display = "block" ;
		}
		
		
function ab(elm,num,total) {
			abTab(elm,num,total) ;
			abSub(elm,num,total) ;
			//showImage(num) ;
			document.body.focus();
		}
				function abTab(elm,num,total) {
			for(i=1;i<=total;i++) {
				document.getElementById(elm+"_"+i).className = "cbg2" ;
			}
			document.getElementById(elm+"_"+num).className = "cbg1" ;
		}
		function abSub(elm,num,total) {
			for (i=1;i<=total;i++) {
				document.getElementById(elm+"_sub"+i).style.display = "none" ;
			}
			document.getElementById(elm+"_sub"+num).style.display = "block" ;
		}
		
