// This page passes a database request to the server.
function Query(params, callback)
{
	$.post(
		'Scripts/Query.php',
		params,
		function(data)
		{
			if (data.response.status != 'ok')
				alert(data.response.status+': '+data.response.message);
			(callback)(data.response, data.data);
		},
		"json"
	);
}

