function taxSubGdtoggle(obj)
{
	var arrImg = document.getElementsByName("subArrow");
	var inc=0
		while (arrImg[inc])
		{
			if(arrImg[inc]==obj) // if it is this image then is it openned or close image
			{		
				if(obj.className=="arrowright"){obj.className="arrowdown";}
				else{obj.className="arrowright";}
			}
			else if(arrImg[inc].className=="arrowdown") //otherwise if it's openned display closed image
			{
				arrImg[inc].className="arrowright";
			}
			inc++;
		}
}
function taxsubguidetoggle(obj, idName)
{
	var arrSpan = document.getElementsByName("spanArrow");
	var arrImg = document.getElementsByName("subArrow");
	var inc=0
		while (arrSpan[inc])
		{
			if(arrSpan[inc]==obj) // if it is this image then is it openned or close image
			{		
				if(arrImg[inc].className=="arrowright"){arrImg[inc].className="arrowdown";}
				else{arrImg[inc].className="arrowright";}
			}
			else if(arrImg[inc].className=="arrowdown") //otherwise if it's openned display closed image
			{
				arrImg[inc].className="arrowright";
			}
			inc++;
		}
}
function closeSubArrows()
{
	var arrImg = document.getElementsByName("subArrow");
	var inc=0
		while (arrImg[inc])
		{
			if(arrImg[inc].className=="arrowdown"){arrImg[inc].className="arrowright";}
			inc++;
		}
}
function taxGdtoggle(obj)
{
	var arrImg = document.getElementsByName("iArrow");
	var inc=0
		while (arrImg[inc])
		{
			if(arrImg[inc]==obj) // if it is this image then is it openned or close image
			{		
				if(obj.className=="arrowright"){obj.className="arrowdown";}
				else{obj.className="arrowright";}
			}
			else if(arrImg[inc].className=="arrowdown") //otherwise if it's openned display closed image
			{
				arrImg[inc].className="arrowright";
			}
			inc++;
		}
		closeSubArrows();
}
function taxguidetoggle(obj, idName)
{
	var arrSpan = document.getElementsByName("sArrow");
	var arrImg = document.getElementsByName("iArrow");
	var inc=0
		while (arrSpan[inc])
		{
			if(arrSpan[inc]==obj) // if it is this image then is it openned or close image
			{		
				if(arrImg[inc].className=="arrowright"){arrImg[inc].className="arrowdown";}
				else{arrImg[inc].className="arrowright";}
			}
			else if(arrImg[inc].className=="arrowdown") //otherwise if it's openned display closed image
			{
				arrImg[inc].className="arrowright";
			}
			inc++;
		}
		closeSubArrows();
}

