/**
* Opens Report Broken Station window
*
* @param int id station id
*/
function reportBrokenStation(id, msg, cachename)
{
	var answer = confirm(msg);

	if(answer)
	{
		$.get("report-station.php", {id: id, report: 1, cache: cachename}, function(data)
		{
			$("#jxresults" + id).after(data);
		});
	}
}

function actionFavorites(station_id, account_id, action, refresh, remove_phrase, add_phrase)
{
	var msg = ('add' == action) ? add_phrase : remove_phrase;
	var conf = confirm(msg);
	
	if (conf)
	{
		$.post("favorites.php", {account_id: account_id, station_id: station_id, action: action, refresh: refresh}, function(data)
		{
			$("#af_" + station_id).text();
			$("#af_" + station_id).html(data);
		});
	}

	return false;
}
