
function BxPrrActions ()
{

}

BxPrrActions.prototype.report = function (id, type)
{
	var $this = this;

	var h = function (r)
	{		
		var o = new BxXmlRequest('','','');			
		var ret = o.getRetNodeValue (r, 'ret');
		if ('1' == ret)
		{
            alert ('Thank you! Profile reported.');
			return false;
		}

		alert ('Profile report error');
		return false;
	}

	new BxXmlRequest (aBxConfig['urlRoot'] + "ProfileReport/xml_report/" + id + "/?type=" + type, h, true);

	return false;
}

BxPrrActions.prototype.showReportWnd = function (iId)
{	
	var w = new BxWnd (aBxConfig['urlRoot'] + 'ProfileReport/xml_report_wnd/?id='+iId, aBxConfig['urlRoot'] + 'modules/ProfileReport/layout/default/xsl/report_wnd.xsl');

	w.setSize(250,250);
	w.show ('Report');
	
	return false;
}

