function recalc(){

}
tabgroups =[];
tabgroups["merchantscrolltabs"] = 2;
tabgroups["eventscrolltabs"] = 2;


tabonbg =[];
tabonbg["merchantscrolltabs"] = '002D61';
tabonbg["eventscrolltabs"] = '002D61';

taboffbg =[];
taboffbg["merchantscrolltabs"] = '990100';
taboffbg["eventscrolltabs"] = '990100';


function getTabCount(tab){
tabObj = tab.split("_");
for(i=tabgroups[tabObj[0]];i>0;i--){
(!NS4) ? browser(tabObj[0]+"_"+i).style.backgroundColor = taboffbg[tabObj[0]]: browser(tabObj[0]+"_"+i).bgColor = taboffbg[tabObj[0]];

}
(!NS4) ? browser(tab).style.backgroundColor = tabonbg[tabObj[0]]: browser(tab).bgColor = tabonbg[tabObj[0]];
}

function loadnew(targ,file,tab,scrollable){
 getTabCount(tab)  // commenting out will cease tab color change
	if(!document.all && document.getElementById){
	document.getElementById(targ+"IE").contentDocument.location.replace(file);
	}else{
	var loadObj = eval(targ+"IE");
	loadObj.location.replace(file);
	}
}//end func
