		function BuildSubrows()
		{
			var tds = document.getElementsByTagName("td");
			var len = tds.length;
			for(var i=0; i < len; i++)
			{
				var td = tds[i];
				if(td.subrow != null)
				{
					var tr = td.parentNode;
					var ntr = document.createElement("TR");
					tr.insertAdjacentElement("afterEnd", ntr);
					var tc = ntr.insertCell();
					tc.colSpan = 111;
					tc.innerHTML = td.subrow;
//					tc.Width = "500px";
				}
			} 
		}


		function ShowHideBlock(id, header) 
		{
			
//			alert(document.all[id].xMenuAccount);
//			var header = id + "Header";
			if (document.all[id].style.display == 'none')
			{
				document.all[id].style.display  ='block';
				document.all[header].style.background = "transparent url(../images/gui/com_xp_arrow_dn.gif) center left no-repeat";
				document.all[id].xMenuAccount = 'true';
			}	
			else
			{
				document.all[id].style.display  ='none';	
				document.all[header].style.background = "transparent url(../images/gui/com_xp_arrow_up.gif) center left no-repeat";
			}
//			alert(document.all[id].xMenuAccount);
		}
		
		function showRow(summaryShow,summaryBlock)
		{
//			alert(summaryShow);
//			alert(summaryBlock);
			var displayStatus = document.getElementById(summaryShow).value;  
//			alert(displayStatus);
			if(displayStatus == "+")
			{
				document.getElementById(summaryShow).value = "-";
				document.getElementById(summaryBlock).style.display = "block";
			}
			if(displayStatus == "-")
			{
				document.getElementById(summaryShow).value = "+";
				document.getElementById(summaryBlock).style.display = "none";
			}
		}
		
		function switchDisplay(element,icon,bgshow,bghide)
		{        
			var displayStatus = document.getElementById(element).style.display;
			if(displayStatus == "block")
			{
			document.getElementById(element).style.display = "none";
			document.getElementById(icon).style.background = "transparent url(" + bgshow + ") center center no-repeat";
			}
			if(displayStatus == "none")
			{
			document.getElementById(element).style.display = "block";
			document.getElementById(icon).style.background = "transparent url(" + bghide + ") center center no-repeat";
			}      
		}    
		
		function MM_openBrWindow(theURL,winName,features) 
		{ 
			//v2.0
			window.open(theURL,winName,features);
		}
