function message_send(fromuserid, touserid, partlistingid)
{
	fdata = $('#Message').formToArray();
	data = associate(fdata);
	
	$("#GB_frame").html("Sending...");
	$.post(PATH_BASE + '/messages/create/'+ data['data[Message][to_user_id]'] + '/',
		fdata, function(data)
		{
			$("#GB_frame").html(data);
		});
}

function reply_send() {
	fdata = $('#Message').formToArray();
	data = associate(fdata);
	
	$.post(PATH_BASE + '/messages/reply/' + data['data[Message][to_user_id]'] + '/',
		fdata, function(data)
		{
			$('#status').html(data);
			//setTimeout('window.location = PATH_BASE+"/messages/inbox";', 1500);
		});
}

function message_load()
{
	
}