function rpcjson(url, cl4ss, m3thod, params, callback)
{
	var postparams = "cl4ss=" + cl4ss + "&m3thod=" + m3thod;
	var paramstring = "";
	var prefix = "";
	for (p in params)
	{
		paramstring += prefix+ p + "=" + escape(params[p]);
		prefix = "&";
	}
	postparams += "&p4rams=" + escape(paramstring);

	new Ajax.Request(url, { method: "post",
						parameters: postparams,
						onSuccess: callback,
						onFailure: rpcjson_error,
						onException: rpcjson_exception }
					);
}

function rpcjson_error(response)
{
//	alert("error: " + response.responseText);
}

function rpcjson_exception(response)
{
//	alert("exception: " + response.responseText);
}