// JavaScript Document

/* Author: Vijay Kumar, Relyon Softech Ltd*/
/* All codes below are Copyright Protected */

function tabopen10(activetab,tabgroupname)
{
	var totaltabs = 8;
	var activetabheadclass = "tabheadactive";
	var tabheadclass = "tabhead";
	
	for(var i=1; i<=totaltabs; i++)
	{
		var tabhead = tabgroupname + 'h' + i;
		var tabcontent = tabgroupname + 'c' + i;
		if(i == activetab)
		{
			document.getElementById(tabhead).className = activetabheadclass;
			document.getElementById(tabcontent).style.display = 'block';
		}
		else
		{
			document.getElementById(tabhead).className = tabheadclass;
			document.getElementById(tabcontent).style.display = 'none';
		}
	}
}

function tabopen7(activetab,tabgroupname)
{
	var totaltabs = 5;
	var activetabheadclass = "tabheadactive";
	var tabheadclass = "tabheadgreen";
	
	for(var i=1; i<=totaltabs; i++)
	{
		var tabhead = tabgroupname + 'h' + i;
		var tabcontent = tabgroupname + 'c' + i;
		if(i == activetab)
		{
			document.getElementById(tabhead).className = activetabheadclass;
			document.getElementById(tabcontent).style.display = 'block';
		}
		else
		{
			document.getElementById(tabhead).className = tabheadclass;
			document.getElementById(tabcontent).style.display = 'none';
		}
	}
}
/*
var timer100 = false;
function tabtimer(activetab,tabgroupname)
{
	if(!timer100)
	{
		var test = "tabopen10('"+activetab+"','"+tabgroupname+"')";
		timer100 = setTimeout(test, 1000);
	}
}

function tabtimeroff()
{
	timer100 = false;
}
*/

function tabopen3(activetab,tabgroupname)
{
	var totaltabs = 3;
	var activetabheadclass = "formstabheadactive";
	var tabheadclass = "formstabhead";
	
	for(var i=1; i<=totaltabs; i++)
	{
		var tabhead = tabgroupname + 'h' + i;
		var tabcontent = tabgroupname + 'c' + i;
		if(i == activetab)
		{
			document.getElementById(tabhead).className = activetabheadclass;
			document.getElementById(tabcontent).style.display = 'block';
		}
		else
		{
			document.getElementById(tabhead).className = tabheadclass;
			document.getElementById(tabcontent).style.display = 'none';
		}
	}
}

function tabopen4(activetab,tabgroupname)
{
	var totaltabs = 4;
	var activetabheadclass = "formstabheadactive";
	var tabheadclass = "formstabhead";
	
	for(var i=1; i<=totaltabs; i++)
	{
		var tabhead = tabgroupname + 'h' + i;
		var tabcontent = tabgroupname + 'c' + i;
		if(i == activetab)
		{
			document.getElementById(tabhead).className = activetabheadclass;
			document.getElementById(tabcontent).style.display = 'block';
		}
		else
		{
			document.getElementById(tabhead).className = tabheadclass;
			document.getElementById(tabcontent).style.display = 'none';
		}
	}
}

function tabopen5(activetab,tabgroupname)
{
	var totaltabs = 5;
	var activetabheadclass = "formstabheadactive";
	var tabheadclass = "formstabhead";
	
	for(var i=1; i<=totaltabs; i++)
	{
		var tabhead = tabgroupname + 'h' + i;
		var tabcontent = tabgroupname + 'c' + i;
		if(i == activetab)
		{
			document.getElementById(tabhead).className = activetabheadclass;
			document.getElementById(tabcontent).style.display = 'block';
		}
		else
		{
			document.getElementById(tabhead).className = tabheadclass;
			document.getElementById(tabcontent).style.display = 'none';
		}
	}
}
