/*********************************************************
	UI Functions for Travel Guard	
**********************************************************/

function ChangeProductCategory()
{
	var drpCategory = document.getElementById("drpCategory");
	var CategoryURL;
		
	if (drpCategory)
	{
		CategoryURL = drpCategory.options[drpCategory.selectedIndex].value;
		document.location.href=CategoryURL;		
	}
}

function OnChangeState()
{
	var drpState = document.forms[0].drpState;
	var txtStateName = document.forms[0].txtStateName;
	
	if(drpState)
	{
		if (drpState.selectedIndex > 0)
		{
			if (txtStateName)
			{
				txtStateName.value = drpState.options[drpState.selectedIndex].text;
			}
		}				
	}	
}
