	// ---------------------------------------
	// City Filter
	// ---------------------------------------
	function mmClearCity()
	{
		// return the document url with a php get call to clear the city variable.
		// ** Don't use document.url to get the current doc location. For some reason it doesn't work.
		var questionmark_loc = window.location.href;
		
		charloc = questionmark_loc.indexOf('?');
		
		if (charloc > 1)
		{ 
			window.location = window.location.href + '&clearcity=1';
		}
		else
		{
			window.location = window.location.href + '?clearcity=1';
		}
	}
	
	function mmLookup(inputString) 
	{
		if(inputString.length == 0) 
		{
			// Hide the suggestion box.
			$('#cityfilterlist').hide();
		} 
		else 
		{
			$.post("scripts/ajax_citysearch.php", 
			{
				queryString: ""+inputString+""
			}, function(data)
			{
				if(data.length >0) 
				{
					$('#cityfilterlist').show();
					$('#cityfilterlist').html(data);
				}
			});
		}
	} // lookup

	function mmFill(thisValue) 
	{
		// Add the selected value to the input string placeholder 
		$('#inputString').val(thisValue);
		setTimeout("$('#cityfilterlist').hide();", 200);
	}
