// JavaScript Document

function HideContent(d) {
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
	if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; 
	}else { 
	document.getElementById(d).style.display = "none"; 
	}
}

function determineTab()
{
	getLocationArgs(window.location.search);
	var tabValue = GETDATA["tab"];

	if (tabValue == "2")
	{
		ShowContent('tabs2'); HideContent('tabs1'); HideContent('tabs3'); HideContent('tabs4');
	}
	else if (tabValue == "3")
	{
		ShowContent('tabs3'); HideContent('tabs1'); HideContent('tabs2'); HideContent('tabs4'); 
	}
	else if (tabValue == "1")
	{
		ShowContent('tabs1'); HideContent('tabs2'); HideContent('tabs3'); HideContent('tabs4');
	}
	else if (tabValue == "4")
	{
		ShowContent('tabs4'); HideContent('tabs1'); HideContent('tabs2'); HideContent('tabs3');
	}
}
