//******************************************************************************************
function SetState(strState)
{
	SetCookie('State', strState, 50);

	//This call is index.htm
	InitStateSelectedLabel();
}
//******************************************************************************************
function GetStateName(strState)
{
	var strStateName = "";
	switch(strState)
	{
		case 'CA':
			strStateName = "California";
			break;
		case 'TX':
			strStateName = "Texas";
			break;
		default:
			strStateName = "";
			break;
	}
	return strStateName;
}
//******************************************************************************************
function InitStateSelectedLabel()
{
	strState = GetCookie('State');
	if(strState != "")
	{
		if(strState == "GEN")
		{
			//Current state doesn't have specific information
			lb_State_Selected.innerHTML = "We currently don't have specific information for that state. General information through the site will be displayed.";
		}
		else
		{
			//State does have specific pages
			lb_State_Selected.innerHTML = GetStateName(strState) + " has been selected as your home state.";
		}
	}
	else
	{
		//first time through, ask use to select their home state
		lb_State_Selected.innerHTML = "Please select your home state.";
	}
}
//******************************************************************************************
//Goto region specific page
function GotoRegionSpecificPage(strPage, strState)
{
	//If state is specified, go to state specific page
	//Else stay on general page
	if(strState != "" && strState != 'GEN')
	{
		location.replace("./" + strPage + "-" + strState + ".asp");
	}
}
//******************************************************************************************