<!--

function chooseTown(strFormName, boolHeadContained)
{
	var arrTownList;
	var objTownSelection;
	var objRegionSelection;
	var intOffSetForAll;
	var i;

	if (document.forms[strFormName].town_id == null)
		return;

	objTownSelection = document.forms[strFormName].town_id;
	objRegionSelection = document.forms[strFormName].region_id;
	objTownSelection.selectedIndex = 0;
	objTownSelection.options.length = 1;



	if (boolHeadContained)
		intOffsetForAll = 1;
	else
		intOffsetForAll = 0;
    
    
	if (objRegionSelection.selectedIndex >= intOffsetForAll){
		arrTownList = (arrTowns[objRegionSelection.value]).split(';');
        	for (i = 0; i < arrTownList.length; i++){
	    		objTownSelection.options.length = i+2;
			objTownSelection.options[i+1].value = (arrTownList[i]).split(',')[0];
			objTownSelection.options[i+1].text = (arrTownList[i]).split(',')[1];
        	}
	}
}

function chooseLocation(strFormName, boolHeadContained)
{
	var arrLocationList;
	var objLocationSelection;
	var objTownSelection;
	var intOffSetForAll;
	var i;

	if (document.forms[strFormName].location_id == null)
		return;

	objLocationSelection = document.forms[strFormName].location_id;
	objTownSelection = document.forms[strFormName].town_id;
	objLocationSelection.selectedIndex = 0;
	objLocationSelection.options.length = 1;



	if (boolHeadContained)
		intOffsetForAll = 1;
	else
		intOffsetForAll = 0;
    
    
	if (objTownSelection.selectedIndex >= intOffsetForAll){
		arrLocationList = (arrLocations[objTownSelection.value]).split(';');
        	for (i = 0; i < arrLocationList.length; i++){
	    		objLocationSelection.options.length = i+2;
			objLocationSelection.options[i+1].value = (arrLocationList[i]).split(',')[0];
			objLocationSelection.options[i+1].text = (arrLocationList[i]).split(',')[1];
        	}
	}
}
// -->

