function abusePhoto(id_photo,abuse_type,id_user)
{
	datos = new Array();
	
	datos['c'] = 'abuse_photo';
	datos['id_photo'] = id_photo;
	datos['id_user'] = id_user;
	datos['abuse_type'] = abuse_type;
	datos_string = http_build_query(datos);

	document.getElementById('abuse_options_'+id_user).innerHTML = '<img src="'+url_ec+'s/ajax-loader.gif" />';
	
	getAjax(url_ec+'ajax_center','GET',datos_string,abusePhotoSent);
}

function abusePhotoSent(response)
{
	var datos_back = response.split('||');

	if (datos_back[0] == 'OK')
	{
		document.getElementById('abuse_options_'+datos_back[1]).innerHTML= '<em>Gracias por su reportar esta foto</em>';
	}
	else
	{
		document.getElementById('abuse_options_'+datos_back[1]).innerHTML= '<em>'+datos_back[0]+'</em>';
	}
}