function changeUrl (tabid)
{
	var curUrl = document.location.href;
	
	curUrl = curUrl.replace(/#.*$/,'');//remove existing hash
	
	var tabText = document.getElementById('Tab' + tabid + 'Text').innerHTML.split('&nbsp;')[0];
	tabText = tabText.replace(/^\s+|\s+$/g,'')//trim whitespace (left and right)
	tabText = tabText.replace(/\s/g,'-');//convert spaces to hyphen
	
     document.location = curUrl + '#'+tabText;
     fnCheckTabs();
}

function ShowTab1()
{
        changeUrl (1);
}

function ShowTab2()
{        
        changeUrl (2);               
}

function ShowTab3()
{
        changeUrl (3);
}

function ShowTab4()
{
        changeUrl (4);
}

function ShowTab5()
{
        changeUrl (5);
}

function ShowTab6()
{
        changeUrl (6);
}
