function LoadStates(region) 
{
	//clear old cities
	document.frmSelection.State.options.length = 0;
	NewOpt1 = new Option;
			NewOpt1.value = "";
			NewOpt1.text = "2 Choose State";
			// Add the new object to the SELECT list
			document.frmSelection.State.options[document.frmSelection.State.options.length] = NewOpt1;
	// loop through recordset to find cities that match region
	for (i = 0; i < statename.length;i++) 
	{
		// match region IDs
		if (regionid[i] == region) 
		{
			//create option if match is found
			NewOpt = new Option;
			NewOpt.value = stateid[i];
			NewOpt.text = statename[i];
			// Add the new object to the SELECT list
			document.frmSelection.State.options[document.frmSelection.State.options.length] = NewOpt; 
		}
		// show all cities if region selected is "All"
		if (region == "ALL")
		{
			NewOpt = new Option;
			NewOpt.value = stateid[i];
			NewOpt.text = statename[i];
			// Add the new object to the SELECT list
			document.frmSelection.State.options[document.frmSelection.State.options.length] = NewOpt; 
		}
	}
}

function LoadResorts(state) 
{
	//clear old cities
	document.frmSelection.ResortID.options.length = 0;
	NewOpt = new Option;
			NewOpt.value = "";
			NewOpt.text = "3 Choose Resort";
			// Add the new object to the SELECT list
			document.frmSelection.ResortID.options[document.frmSelection.ResortID.options.length] = NewOpt;
	
	// loop through recordset to find cities that match region
	for (i = 0; i < resortname.length;i++) 
	{
		// match region IDs
		if (resortStateID[i] == state) 
		{
			//create option if match is found
			NewOpt = new Option;
			NewOpt.value = resortid[i];
			NewOpt.text = resortname[i];
			// Add the new object to the SELECT list
			document.frmSelection.ResortID.options[document.frmSelection.ResortID.options.length] = NewOpt; 
		}
		// show all cities if region selected is "All"
		if (state == "ALL")
		{
			NewOpt = new Option;
			NewOpt.value = resortid[i];
			NewOpt.text = resortname[i];
			// Add the new object to the SELECT list
			document.frmSelection.ResortID.options[document.frmSelection.ResortID.options.length] = NewOpt; 
		}
	}
}