/**
* Opens Report Broken Website window
*
* @param int id website id
*/
function reportBrokenWebsite(id, msg)
{
	var answer = confirm(msg);

	if(answer)
	{
		$.get("report-website.php", {id: id, report: 1}, function(data)
		{
			$("#tdwebsite" + id).after(data);
		});
	}
}

function actionFavorites(website_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, website_id: website_id, action: action, refresh: refresh}, function(data)
		{
			$("#af_" + website_id).text();
			$("#af_" + website_id).html(data);
		});
	}

	return false;
}
