function setRegion(dosub)
{
	// shortcut
	var frm = document.srchset;
	
	// 2 = Destination Clubs
	// 6 = Jets
	// 7 = Yacht
	var oLto = frm.list_type;
	var value = oLto[oLto.selectedIndex].value

	if (value == 6 || value == 7 || value == 2)
	{
		frm.category.disabled = true
		frm.category.selectedIndex = 0
		frm.region.disabled = true
		frm.region.selectedIndex = 0
	} else {
		frm.region.disabled = false
		if (value == 5)
		{
			frm.category.disabled = true
			frm.category.selectedIndex = 0
		} else {
			frm.category.disabled = false
		}
	}

	// are we submitting?
	if (dosub) {sub_frac_req((frm.get_all.checked?0:1));}
}

function sub_frac_req(allnew)
{
	// shortcut
	var frm = document.srchset;
	
	// listing type
	// 2 = Destination Clubs
	// 6 = Jets
	// 7 = Yacht
	var obj = frm.list_type;
	var lt = obj[obj.selectedIndex].value;
	
	// category type and region
	var ct,reg;
	
	// assume no selection 
	reg = ct = 'all';
	if ((lt!='5')&&(lt!='2')&&(lt!='6')&&(lt!='7'))
	{
		// get the category
		obj = frm.category;
		ct =obj[obj.selectedIndex].value;
	}
	if ((lt!='2')&&(lt!='6')&&(lt!='7'))
	{
		// get the region
		obj = frm.region;
		reg = obj[obj.selectedIndex].value;
	}
	
	// build the pretty URL
	var url = '/LFG_LT_'+lt+'_CT_'+ct+'_RG_'+reg+'_'+allnew+'/page1.php';
	
	// create the form
	var newfrm = document.createElement('form');

	// set the action for the form
	newfrm.setAttribute('action',url);
	newfrm.setAttribute('method','post');

	// add the form to the page
	document.getElementById('blankformhere').appendChild(newfrm);

	// submit the form
	newfrm.submit();
	
	return false;
}

