
function do2(secNum, who ){
	if ( secNum.style.display=="none" ) { secNum.style.display="" ; who.src = "../cata/minus.gif" ;
	} else { secNum.style.display="none" ; who.src = "../cata/plus.gif" ; }
}
function do2r(secNum, who ){
	if ( secNum.style.display=="none" ) { secNum.style.display="" ; who.src = "../cata/minus.gif" ;
	} else { secNum.style.display="none" ; who.src = "../cata/plus.gif" ; }
}
function ro2(secNum, who ){
	if ( secNum.style.display=="none" ) { secNum.style.display="" ; who.src = "../cata/plus.gif" ;
	} else { secNum.style.display="none" ; who.src = "../cata/minus.gif" ; }
}
function roffff2( who, secNum ){
	document.getElementById("out").innerHTML = who
	secNum.style.display= ""
}
function ro123( who, ttlbatch ){
var i ;
	for( i=1; i<= ttlbatch ; i++ ){ document.all('BATCH' +  i ).style.display= "none" }
	document.all('BATCH' + who ).style.display= ""
	document.getElementById("brandall").checked=false;
	brandimg.src = "../cata/minus.gif" ; BRAND.style.display= ""
}
function ro567( who, ttlbatch ){
var i ;
	for( i=1; i< who ; i++ ){ document.all('BATCH' +  i ).style.display= "none" }
	for( i=who; i<= ttlbatch ; i++ ){ document.all('BATCH' +  i ).style.display= "" }
//	document.all('BATCH' + who ).style.display= ""
	document.getElementById("brandall").checked=false;
	brandimg.src = "../cata/minus.gif" ; BRAND.style.display= ""
}
function roALL( who, ttlbatch ){
var i ; var dummy ; var idx ;
	if( who.checked == true ){
	brandimg.src = "../cata/minus.gif" ; BRAND.style.display= ""
//	document.getElementById("out").innerHTML  = who.checked
		for( i=1; i<= ttlbatch ; i++ ){ document.all('BATCH' +  i ).style.display= "" ; }
	} else {
//	document.getElementById("out").innerHTML  = brandbatch[3].checked
	for( i=1; i<= ttlbatch ; i++ ){ document.all('BATCH' +  i ).style.display= "none" }
		//document.getElementById("out").innerHTML = ""
	for( i=1; i<= 4 ; i++ ){
		idx = i - 1 ; 
		//document.getElementById("out").innerHTML = document.getElementById("out").innerHTML + i + " = " +  brandbatch[i].checked + " end "
		if( brandbatch[idx].checked == true ){ document.all('BATCH' +  i ).style.display= "" }
	}
	}
}
