function getCommunities(form)
{
	commSelect = form.community;
	commSelect.options.length = 0;
	
	var rid = form.region.value;
	//alert("ridi is " + rid);
	//var rid = this.options[i].value;
	
	var comm;
	
	if (form.region.selectedIndex == 0)
	{
		comm = allComms;
	}
	else
	{
		comm = comms[rid];
	}
		
	for (var j = 0; j < comm.length; ++j)
	{
		var option = new Option(comm[j][1],
								comm[j][0],
								false,
								false);
		commSelect.options[commSelect.options.length] = option;
	}
	
	//form.action = comm[0][1];
}

function changeFormAction(form)
{
	//form.action = form.community.options[form.community.selectedIndex].text;
}