function SetTab(strTableID, strdisplayStyle)
{
	var tblTable = document.getElementById(strTableID);

	tblTable.style.display = strdisplayStyle;

	return true;
}

function SetImage(strImage, imgNewImage)
{
	var imgImage = document.images[strImage];

	imgImage.src = imgNewImage.src;
}

function SetTabBG(strTableID,strTableBG)
{
	var tblTable = document.getElementById(strTableID);
	tblTable.style.backgroundColor = strTableBG;

	return true;
}

function SelectTab(longSection)
{
	switch (longSection) {
	case 1 : 
		SetTab('tblSection1', 'block');
		SetTab('tblSection2', 'none');
		SetTab('tblSection3', 'none');
		SetTab('tblSection4', 'none');
		SetTab('tblSection5', 'none');
		break;
	case 2 : 
		SetTab('tblSection1', 'none');
		SetTab('tblSection2', 'block');
		SetTab('tblSection3', 'none');
		SetTab('tblSection4', 'none');
		SetTab('tblSection5', 'none');
		break;
	case 3 :
		SetTab('tblSection1', 'none');
		SetTab('tblSection2', 'none');
		SetTab('tblSection3', 'block');
		SetTab('tblSection4', 'none');
		SetTab('tblSection5', 'none');
		break;
	case 4 :
		SetTab('tblSection1', 'none');
		SetTab('tblSection2', 'none');
		SetTab('tblSection3', 'none');
		SetTab('tblSection4', 'block');
		SetTab('tblSection5', 'none');
		break;
	case 5 :
		SetTab('tblSection1', 'none');
		SetTab('tblSection2', 'none');
		SetTab('tblSection3', 'none');
		SetTab('tblSection4', 'none');
		SetTab('tblSection5', 'block');
		break;
	case 6 :
		SetTab('tblSection4', 'none');
		SetTab('tblSection5', 'none');
		SetTab('tblSection6', 'block');
		break;
	}
	return true;
}

var isClickTab=false;
function clickTabAuto(id){
  if(isClickTab == false) {
    if (id >5){id=1;}
    SelectTab(id);
    id++;
    timer = setTimeout("clickTabAuto("+id+")", 20000);
  }
}

var isClickTabM=false;
function clickTabAutoM(id){
  if(isClickTabM == false) {
    if (id >10){id=6;}
    SelectTab(id);
    id++;
    timer2 = setTimeout("clickTabAutoM("+id+")", 20000);
  }
}


