function test_completed(download_speed, upload_speed, latency, server_id) {
	download_rate = Math.round((download_speed/8)*10)/10;
	upload_rate = Math.round((upload_speed/8)*10)/10;
	var curdate = new Date();
	var speed = document.getElementById('speed');
	if (speed) {
		speed.innerHTML = "<font color=black face=arial size=4>" + curdate.toLocaleString() + "</font>";
// Esto saca mas explicaciones de la medida
//		if (latency) {
//			speed.innerHTML = "<font color=blue face=arial size=4><strong>Resultados:</strong><br/>" + "Velocidad de Descarga: <font color=red><strong>" + download_speed + "</strong></font> kbps (<font color=red>" + download_rate + "</font> KB/seg promedio de transferencia)<br/>" + "Velocidad de Subida: <font color=red><strong>" + upload_speed + "</strong></font> kbps (<font color=red>" + upload_rate + "</font> KB/seg promedio de transferencia)<br/>" + "Latencia: <font color=red><strong>" + latency + "</strong></font> ms<br/>" + curdate.toLocaleString() + "</font>";
//		} else {
//			speed.innerHTML = "<font color=blue face=arial size=4><strong>Resultados:</strong><br/>" + "Velocidad de Descarga: <font color=red><strong>" + download_speed + "</strong></font> kbps (<font color=red>" + download_rate + "</font> KB/seg promedio de transferencia)<br/>" + "Velocidad de subida: <font color=red><strong>" + upload_speed + "</strong></font> kbps (<font color=red>" + upload_rate + "</font> KB/seg promedio de transferencia)<br/>" + curdate.toLocaleString() + "</font>";
//		}
	}
	var abovebefore = document.getElementById('abovebefore');
	if (abovebefore) {
		abovebefore.style.display = "none";
	}
	var belowbefore = document.getElementById('belowbefore');
	if (belowbefore) {
		belowbefore.style.display = "none";
	}
//	var aboveafter = document.getElementById('aboveafter');
//	if (aboveafter) {
//		aboveafter.style.display = "block";
//	}
//	var belowafter = document.getElementById('belowafter');
//	if (belowafter) {
//		belowafter.style.display = "block";
//	}
}
