function setupForm(destinationcsv, activitycsv) {
	clearOptions();

	//Absoluitely imperative you remove the trailing comma before you do anything:
	destinationcsv = destinationcsv.substring(0,(destinationcsv.length-1));
	activitycsv = activitycsv.substring(0,(activitycsv.length-1));

	var destinationArray = destinationcsv.split(",");
	var activityArray = activitycsv.split(",");

	var destinationSelectBox = document.getElementById("destination");
	var activitySelectBox = document.getElementById("activity");	

	//Some default 'choose...' options
	var newOption = document.createElement("option");
	newOption.value = "X";
	newOption.text = "Choose Destination...";
	try{destinationSelectBox.add(newOption, null);}catch(ex){destinationSelectBox.add(newOption);}//NB:IE fix
	newOption = document.createElement("option");
	newOption.value = "X";
	newOption.text = "Choose Activity...";
	try{activitySelectBox.add(newOption, null);}catch(ex){activitySelectBox.add(newOption);}//NB:IE fix

	//Now create and add accordingly...
	for(i=0; i < destinationArray.length; i++) {
		var thisOptionArray = destinationArray[i].split("|");
		newOption = document.createElement("option");
		newOption.value = thisOptionArray[0] + "|" + thisOptionArray[1];
		newOption.text = thisOptionArray[1];
		try{destinationSelectBox.add(newOption, null);}catch(ex){destinationSelectBox.add(newOption);}//NB:IE fix
	}

	for(i=0; i < activityArray.length; i++) {
		var thisOptionArray = activityArray[i].split("|");
		newOption = document.createElement("option");
		newOption.value = thisOptionArray[0] + "|" + thisOptionArray[1];
		newOption.text = thisOptionArray[1];
		try{activitySelectBox.add(newOption, null);}catch(ex){activitySelectBox.add(newOption);}//NB:IE fix
	}
}

function clearOptions() {
	//Clears drop down lists of any options
	document.getElementById("destination").length = 0;
	document.getElementById("activity").length = 0;
}

function setSummer() {
	//Variables used in this func are declared in the XSL template
	setupForm(summerDestinations, summerActivities);
}

function setWinter() {
	//Variables used in this func are declared in the XSL template
	setupForm(winterDestinations, winterActivities);
}