function currTab()
{
	var sPage = getCurrentPage()
	var sID = sPage.substring(0,sPage.indexOf('.'))
	
	try
	{
		document.anchors[sID].removeAttribute("href");
		// This does not work in IE, so use try catch
	} 
	catch(err)
	{
		var linkName;
		var linkCount=document.links.length;
		// Loop for IE to find Anchor number
		for (i=0;i<=linkCount;i++)
		{
			linkName=document.links[i].href;
			if (linkName.indexOf('/'+sID+'.') > 0)
			{
				document.anchors[i].removeAttribute("href",0);
				i=linkCount;
			}
		}			
	}

	document.getElementById(sID).style.color="#FFA14D";
}

function getCurrentPage()
{
	var sPath = window.location.href;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	
	if (sPage == '')
	{
		sPage='index.asp'
	}
	
	return(sPage)
}

function fillWindow()
{
	var h = findPageHeight() + 'px';
	window.document.getElementById('content').style.minHeight = h	
}

function findPageHeight() 
{
	if( typeof( window.innerWidth ) == 'number' ) 
	{
		//Non-IE
		return(window.innerHeight);
	} 
	else if( document.documentElement && document.documentElement.clientHeight ) 
	{
		//IE 6+ in 'standards compliant mode'
		return(document.documentElement.clientHeight);
	} 
	else if( document.body && document.body.clientHeight ) 
	{
		//IE 4 compatible
		return(document.body.clientHeight);
	}
	else
	{
		return(null);
	}	  
}