
	
	function changeTab(tabToShow)
	{
	    //alert ('in change tab');
	    try {
	        var tabTable = document.getElementById('tabs');
	         //alert ("tabTable = " + tabTable);
	         var tabRow = tabTable.tBodies[0].rows[0];
	         //var contentRow = tabTable.tBodies[0].rows[1];
	         
	         //alert ("tab count = " + tabRow.childNodes.length);
	         for (i=0; i<tabRow.childNodes.length; i++)
	         {
	                    //alert ("is lastchild not null?");
	            if (tabRow.childNodes[i].lastChild)
	            {
	                    //alert ("lastchild not null");
	                var tabName = tabRow.childNodes[i].lastChild.nodeValue;
	                if (tabName != "")
	                {
	                    //alert ("tabname = " + tabName);
	                    document.getElementById(tabName).style.display='none';
	                    //alert ("TabName = " + tabName + "<br>TabToShow = " + tabToShow);
                        tabRow.childNodes[i].removeAttribute('oldStyle');
	                    if (tabName == tabToShow)
	                    {   
	                        //alert ("setting as selected");
                            //tabRow.childNodes[i].className = 'tabSelected';
                            tabRow.childNodes[i].setAttribute('oldStyle', 'tabSelected');
   	                    }
   	                    else
   	                    {
 	                        //alert ("setting as unselected");
                            tabRow.childNodes[i].className = 'tabUnselected';
 	                    }
	                }
	            }
	         }
	        var theTabToShow = document.getElementById(tabToShow);
	        theTabToShow.style.display='block';
        }
	    catch(e)
	    {
	    return;
	    }
	}

