<!-- Javascript Document

function clearcombo(elem){

	var i;
	for (i = elem.options.length; i >= 0; i--) elem.options[i] = null;
	elem.selectedIndex = -1;
}
function populatecombo2(elem, index){

	if (array1.length >= index){
		if (array1[index]){
			for (var i = 0; i < array1[index].length; i= i + 2){
				elem.options[elem.options.length] = new Option(array1[index][i + 1], array1[index][i]);
			}
		}
		else{
			elem.options[elem.options.length] = new Option("All Regions", "all");
		}
	}
	else{
		elem.options[elem.options.length] = new Option("All Regions", "all");
	}
}
function populatecombo3(elem, index){

	if (array2.length >= index){
		if (array2[index]){
			for (var i = 0; i < array2[index].length; i= i + 2){
				elem.options[elem.options.length] = new Option(array2[index][i + 1], array2[index][i]);
			}
		}
		else{
			elem.options[elem.options.length] = new Option("All Suburbs", "all");
		}
	}
	else{
		elem.options[elem.options.length] = new Option("All Suburbs", "all");
	}
}
function clickcombo(nWhich,elem1,elem2,elem3){

	if (nWhich == 1){
		clearcombo(elem2);
		clearcombo(elem3);
		populatecombo2(elem2, elem1[elem1.selectedIndex].value);
	}
	if (nWhich == 2){
		clearcombo(elem3);
		populatecombo3(elem3, elem2[elem2.selectedIndex].value);
	}
	return true;
}
// -->
