	function moveOptions(fromEle, toEle) {
		var opts = fromEle.options.length - 1;
		var locs = "";
		for (i = opts; i>=0; i--) {
			opt = fromEle.options[i];
			if (opt.selected) {
				var len = toEle.options.length++;
				toEle.options[len].value = opt.value;
				toEle.options[len].text = opt.text;
				locs += opt.text + "|";
				fromEle.remove(i);
			}
		}

		if (locs.length > 0) {
			locs = locs.substring(0, locs.length - 1);
			if (fromEle.id == 'philCityListUnselected') {
				window.document.philly_map_flash.SetVariable('msgMark', locs);
			} else {
				window.document.philly_map_flash.SetVariable('msgUnmark', locs);
			}
		}

	}

	function removeAllLocations() {
		fromEle = document.getElementById('philCityList');
		toEle = document.getElementById('philCityListUnselected');
		var opts = fromEle.options.length - 1;
		var locs = "";
		for (i = opts; i>=0; i--) {
			opt = fromEle.options[i];
			var len = toEle.options.length++;
			toEle.options[len].value = opt.value;
			toEle.options[len].text = opt.text;
			locs += opt.text + "|";
			fromEle.remove(i);
		}

		if (locs.length > 0) {
			locs = locs.substring(0, locs.length - 1);
			window.document.philly_map_flash.SetVariable('msgUnmark', locs);
		}
	}

	function selectAllLocations() {
		fromEle = document.getElementById('philCityListUnselected');
		toEle = document.getElementById('philCityList');
		var opts = fromEle.options.length - 1;
		var locs = "";
		for (i = opts; i>=0; i--) {
			opt = fromEle.options[i];
				var len = toEle.options.length++;
				toEle.options[len].value = opt.value;
				toEle.options[len].text = opt.text;
				locs += opt.text + "|";
				fromEle.remove(i);
		}

		if (locs.length > 0) {
			locs = locs.substring(0, locs.length - 1);
			window.document.philly_map_flash.SetVariable('msgMark', locs);
		}
	}

	function popPhillyCities() {
		document.phillyPropSearch.CITYTEMPLIST.value = "";

		fromEle = document.getElementById('philCityList')
		var opts = fromEle.options.length - 1;
		for (i = opts; i>=0; i--) {
			opt = fromEle.options[i];
			document.phillyPropSearch.CITYTEMPLIST.value += opt.value;
			if (i != 0) {
				document.phillyPropSearch.CITYTEMPLIST.value += ","
			}
		}

		return true;
	}
