function switchTabs(obj, obj_c, val, style_show, style_dis, style_noshow, style_nodis)
{
	for(i=1;i<=obj_c;i++)
	{
		var strname = obj + i;
		var strnameSub = obj + i + "_sub";  // sub tab name rule +'_sub'
		if(val==i) 
		{
			document.getElementById(strname).className		= style_show;	// "show";
			document.getElementById(strnameSub).className	= style_dis;	// "dis";
		}
		else
		{
			document.getElementById(strname).className		= style_noshow;	// "noshow";
			document.getElementById(strnameSub).className	= style_nodis;	// "nodis";
		}
	}
}