// JavaScript Document

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

function tabopen8(activetab,tabgroupname)
{
	var totaltabs = 8;
	var activetabheadclass = "tabheadactive";
	var tabheadclass = "tabheadinactive";
	
	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 tog(divid1,obj) {
 if (document.getElementById) 
 {
  var a = document.getElementById(divid1).style;
  if (a.display == "block") {
   a.display = "none"; 
    } else {
   a.display = "block";	
  }
  return false;
  } else {
  return true;
 }
}

