function getWeather(addr, latitude, longitude, cityState, yesfade, rtype) 

{

	

	if (cityState == "")

	{

		alert("Please enter a city and state!");

		

		return false;

	}

	

	// Check for the return type of the data

	if (rtype == true)	{

		jQuery.getJSON("weather/action/weather.action.php",{addr: addr, lat: latitude, lon: longitude, cs: cityState, rtype: rtype}, function(returnData) {

			jQuery.each(returnData, function(key, val) {

   				switch(key)

   				{

   					case "citystate":

   						jQuery(".weather-info-box .city-name").html(val);

   						break;

   					case "low":

   						jQuery(".weather-info-box .city-temp .low").html("Low: " + val + "&#39;s");

   						break;

   					case "high":

   						jQuery(".weather-info-box .city-temp .high").html("High: " + val + "&#39;s");

   						break;   					

   				}

  			});

		});

	}

}
