function switch_tab_two(d,num,menu,obj)
{

   var index=parseInt(d);
   if(index < 0 && index > num-1)
   {
      index = 0;
   }
   if (index==0){
   for(var ti=0;ti<num;ti++)
   {
       if(index==ti){
           document.getElementById(obj+ti).style.display = "block";
           document.getElementById(menu+ti).className = "currentarea5";   //让标签显示为“当前样式”
           
       }else{
           document.getElementById(obj+ti).style.display = "none";
           document.getElementById(menu+ti).className = "currentarea6";   //这里让其它标签显示为“非当前样式”
       }
   }}
   else{
	   for(var ti=0;ti<num;ti++)
   {
		if(index==ti){
           document.getElementById(obj+ti).style.display = "block";
           document.getElementById(menu+ti).className = "currentarea7";   //让标签显示为“当前样式”
           
       }else{
           document.getElementById(obj+ti).style.display = "none";
           document.getElementById(menu+ti).className = "currentarea8";   //这里让其它标签显示为“非当前样式”
       }
   }
}
   
}
var isPollTwo = true;
var pollVarTwo =0;   //产生随机默认标签序号


function setPollTwo(v)       //用true和false控制自动轮换
{
isPollTwo=v;
}

function pollPlayTwo()
{
if (isPollTwo)
{
   pollVarTwo=pollVarTwo%2; 
   switch_tab_two(pollVarTwo,2,'areanumlabel','numpanel');
   pollVarTwo++;
}
}
// JavaScript Document
